Message ID | 7c8b5df691c0b12c656e0dd8d350f260308dc115.1566976047.git.ps@pks.im (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fixes for various compiler warnings | expand |
diff --git a/support/export/xtab.c b/support/export/xtab.c index 1e1d679e..00b25eaa 100644 --- a/support/export/xtab.c +++ b/support/export/xtab.c @@ -10,7 +10,7 @@ #include <config.h> #endif -#include <sys/fcntl.h> +#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> diff --git a/support/nfs/rmtab.c b/support/nfs/rmtab.c index 2ecb2cc9..9f03167d 100644 --- a/support/nfs/rmtab.c +++ b/support/nfs/rmtab.c @@ -10,7 +10,7 @@ #include <config.h> #endif -#include <sys/fcntl.h> +#include <fcntl.h> #include <stdlib.h> #include <string.h> #include <stdio.h> diff --git a/support/nfs/svc_socket.c b/support/nfs/svc_socket.c index 5afc6aa5..2e8fe1af 100644 --- a/support/nfs/svc_socket.c +++ b/support/nfs/svc_socket.c @@ -22,7 +22,7 @@ #include <netdb.h> #include <rpc/rpc.h> #include <sys/socket.h> -#include <sys/fcntl.h> +#include <fcntl.h> #include <errno.h> #include "xlog.h" #include "rpcmisc.h" diff --git a/support/nfs/xio.c b/support/nfs/xio.c index e3d27d2f..6962751d 100644 --- a/support/nfs/xio.c +++ b/support/nfs/xio.c @@ -10,7 +10,7 @@ #include <config.h> #endif -#include <sys/fcntl.h> +#include <fcntl.h> #include <string.h> #include <stdlib.h> #include <stdio.h>
While most source files already use the standard header <fcntl.h> instead of <sys/fcntl.h>, some do not, causing warnings on musl libc systems. Fix the remaining ones to use <fcntl.h>. As we already use the header unconditionally in a lot of places, this change should not cause any problems for other platforms. Signed-off-by: Patrick Steinhardt <ps@pks.im> --- support/export/xtab.c | 2 +- support/nfs/rmtab.c | 2 +- support/nfs/svc_socket.c | 2 +- support/nfs/xio.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)