summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libshare/nfs.c1
-rw-r--r--lib/libspl/os/freebsd/getexecname.c11
-rw-r--r--lib/libspl/os/linux/getexecname.c5
-rw-r--r--lib/libzfs/os/freebsd/libzfs_zmount.c2
4 files changed, 12 insertions, 7 deletions
diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c
index 7cc5ae43f..c45f25cd0 100644
--- a/lib/libshare/nfs.c
+++ b/lib/libshare/nfs.c
@@ -35,6 +35,7 @@
#include <libzfs.h>
#include <libshare.h>
#include "libshare_impl.h"
+#include "nfs.h"
static boolean_t nfs_available(void);
diff --git a/lib/libspl/os/freebsd/getexecname.c b/lib/libspl/os/freebsd/getexecname.c
index 13e50d324..2b057cc73 100644
--- a/lib/libspl/os/freebsd/getexecname.c
+++ b/lib/libspl/os/freebsd/getexecname.c
@@ -21,14 +21,15 @@
*/
-#include <string.h>
-#include <unistd.h>
-#include <pthread.h>
+#include <errno.h>
#include <limits.h>
+#include <pthread.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/param.h>
-#include <sys/types.h>
#include <sys/sysctl.h>
-#include <errno.h>
+#include <sys/types.h>
+#include <unistd.h>
const char *
getexecname(void)
diff --git a/lib/libspl/os/linux/getexecname.c b/lib/libspl/os/linux/getexecname.c
index c21a110ad..6352a1a34 100644
--- a/lib/libspl/os/linux/getexecname.c
+++ b/lib/libspl/os/linux/getexecname.c
@@ -25,10 +25,11 @@
*/
+#include <limits.h>
+#include <pthread.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <pthread.h>
-#include <limits.h>
const char *
getexecname(void)
diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c
index c6415b8b8..2207fffc5 100644
--- a/lib/libzfs/os/freebsd/libzfs_zmount.c
+++ b/lib/libzfs/os/freebsd/libzfs_zmount.c
@@ -43,6 +43,8 @@ __FBSDID("$FreeBSD$");
#include <sys/errno.h>
#include <libzfs.h>
+#include "libzfs_impl.h"
+
static void
build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val,
size_t len)