Skip to content

Commit 75bf636

Browse files
authored
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
1 parent 7432d29 commit 75bf636

File tree

1 file changed

+1
-0
lines changed
  • lib/libshare/os/linux

1 file changed

+1
-0
lines changed

lib/libshare/os/linux/nfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <string.h>
3232
#include <strings.h>
3333
#include <errno.h>
34+
#include <fcntl.h>
3435
#include <sys/file.h>
3536
#include <sys/stat.h>
3637
#include <sys/types.h>

0 commit comments

Comments
 (0)