aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare
diff options
context:
space:
mode:
authoralaviss <[email protected]>2020-09-04 19:03:57 +0000
committerGitHub <[email protected]>2020-09-04 12:03:57 -0700
commit75bf636cd06f5911a35ccd99af96e3087218891d (patch)
treeeec8e4f900fd3744f4be3a5fdf58aa5ae653cfa0 /lib/libshare
parent7432d29760ebce2415a696bb5fb443c50969e7be (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/libshare')
-rw-r--r--lib/libshare/os/linux/nfs.c1
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>