summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2017-11-03 14:09:45 +1100
committerDarren Tucker <dtucker@zip.com.au>2017-11-03 14:09:45 +1100
commitfa1b834cce41a1ce3e6a8d57fb67ef18c9dd803f (patch)
tree51458d0ce753d655b5cfdef9516c168afb73e49f
parent41bff4da21fcd8a7c6a83a7e0f92b018f904f6fb (diff)
Add headers for sys/sysctl.h and net/route.h
On at least older OpenBSDs, sys/sysctl.h and net/route.h require sys/types and, in the case of sys/sysctl.h, sys/param.h for MAXLOGNAME.
-rw-r--r--configure.ac10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e919dee37..a739bd553 100644
--- a/configure.ac
+++ b/configure.ac
@@ -404,7 +404,6 @@ AC_CHECK_HEADERS([ \
404 sys/strtio.h \ 404 sys/strtio.h \
405 sys/statvfs.h \ 405 sys/statvfs.h \
406 sys/sysmacros.h \ 406 sys/sysmacros.h \
407 sys/sysctl.h \
408 sys/time.h \ 407 sys/time.h \
409 sys/timers.h \ 408 sys/timers.h \
410 time.h \ 409 time.h \
@@ -428,8 +427,13 @@ AC_CHECK_HEADERS([sys/capsicum.h], [], [], [
428#endif 427#endif
429]) 428])
430 429
431# net/route.h requires sys/socket.h 430# net/route.h requires sys/socket.h and sys/types.h.
432AC_CHECK_HEADERS([net/route.h], [], [], [ 431# sys/sysctl.h also requires sys/param.h
432AC_CHECK_HEADERS([net/route.h sys/sysctl.h], [], [], [
433#ifdef HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#include <sys/param.h>
433#include <sys/socket.h> 437#include <sys/socket.h>
434]) 438])
435 439