Selaa lähdekoodia

os-posix: Fix build on FreeBSD

Add an include for a header required to build on recent FreeBSD.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
Signed-off-by: Andreas Frber <andreas.faerber@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Nathan Whitehorn 13 vuotta sitten
vanhempi
commit
15fdaee3c5
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      os-posix.c

+ 4 - 0
os-posix.c

@@ -44,6 +44,10 @@
 #include <sys/prctl.h>
 #include <sys/prctl.h>
 #endif
 #endif
 
 
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
 static struct passwd *user_pwd;
 static struct passwd *user_pwd;
 static const char *chroot_dir;
 static const char *chroot_dir;
 static int daemonize;
 static int daemonize;