<sys/types.h> is required before <sys/sysctl.h> on FreeBSD
authorEric Biggers <ebiggers3@gmail.com>
Sun, 3 May 2015 19:53:10 +0000 (14:53 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 3 May 2015 19:53:10 +0000 (14:53 -0500)
src/util.c

index f22d451e6e8f4b4fd08c5a023dbaecb90ea62017..20f04388156243d4c25072fe7a13280e85e128f6 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 #ifdef HAVE_SYS_SYSCTL_H
+#  include <sys/types.h>
 #  include <sys/sysctl.h>
 #endif
 #include <unistd.h>