diff options
author | alaviss <[email protected]> | 2020-09-04 19:03:57 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-09-09 10:26:02 -0700 |
commit | 0b5a4c4d6bc3943d6bf2cd96e282e27425f46583 (patch) | |
tree | 0a078d29dd3b8169744ec0ce713d9f0b13c864b1 /lib | |
parent | ee73a8ff3dd8863967876bd2068f8c9152e1a3ae (diff) |
libshare: Add missing headers for nfs.c
On musl libc, zfs failed to compile due to the missing <fcntl.h>
include, which is required for `open()` per POSIX.
This commit add the missing <fcntl.h> include.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Hiếu Lê <[email protected]>
Closes #10880
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libshare/os/linux/nfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libshare/os/linux/nfs.c b/lib/libshare/os/linux/nfs.c index bc949213f..a6a9b33d7 100644 --- a/lib/libshare/os/linux/nfs.c +++ b/lib/libshare/os/linux/nfs.c @@ -31,6 +31,7 @@ #include <string.h> #include <strings.h> #include <errno.h> +#include <fcntl.h> #include <sys/file.h> #include <sys/stat.h> #include <sys/types.h> |