aboutsummaryrefslogtreecommitdiffstats
path: root/main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch')
-rw-r--r--main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch b/main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch
new file mode 100644
index 0000000000..87ccb78874
--- /dev/null
+++ b/main/zfs-hardened/0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch
@@ -0,0 +1,29 @@
+From 401951765dcf49c5a993280bf6a93b89c7f01bb8 Mon Sep 17 00:00:00 2001
+From: Carlo Landmeter <clandmeter@gmail.com>
+Date: Fri, 25 Mar 2016 20:47:03 +0100
+Subject: [PATCH 3/8] Add missing fcntl.h to includes in mount_zfs.c
+
+This is needed for musl libc
+
+Signed-off-by: Carlo Landmeter <clandmeter@gmail.com>
+Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
+Closes #4456
+---
+ cmd/mount_zfs/mount_zfs.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c
+index bd860cb..a939744 100644
+--- a/cmd/mount_zfs/mount_zfs.c
++++ b/cmd/mount_zfs/mount_zfs.c
+@@ -33,6 +33,7 @@
+ #include <libzfs.h>
+ #include <locale.h>
+ #include <getopt.h>
++#include <fcntl.h>
+
+ #define ZS_COMMENT 0x00000000 /* comment */
+ #define ZS_ZFSUTIL 0x00000001 /* caller is zfs(8) */
+--
+2.7.4
+