aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libshare')
-rw-r--r--lib/libshare/nfs.c2
-rw-r--r--lib/libshare/smb.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c
index 0cfd42c1a..5c8976e15 100644
--- a/lib/libshare/nfs.c
+++ b/lib/libshare/nfs.c
@@ -26,8 +26,10 @@
*/
#include <stdio.h>
+#include <string.h>
#include <strings.h>
#include <fcntl.h>
+#include <errno.h>
#include <sys/wait.h>
#include <unistd.h>
#include <libzfs.h>
diff --git a/lib/libshare/smb.c b/lib/libshare/smb.c
index 76145bd93..ffae5699c 100644
--- a/lib/libshare/smb.c
+++ b/lib/libshare/smb.c
@@ -48,6 +48,7 @@
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <strings.h>
#include <fcntl.h>
#include <sys/wait.h>