From fa1b834cce41a1ce3e6a8d57fb67ef18c9dd803f Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 3 Nov 2017 14:09:45 +1100 Subject: 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. --- configure.ac | 10 +++++++--- 1 file 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([ \ sys/strtio.h \ sys/statvfs.h \ sys/sysmacros.h \ - sys/sysctl.h \ sys/time.h \ sys/timers.h \ time.h \ @@ -428,8 +427,13 @@ AC_CHECK_HEADERS([sys/capsicum.h], [], [], [ #endif ]) -# net/route.h requires sys/socket.h -AC_CHECK_HEADERS([net/route.h], [], [], [ +# net/route.h requires sys/socket.h and sys/types.h. +# sys/sysctl.h also requires sys/param.h +AC_CHECK_HEADERS([net/route.h sys/sysctl.h], [], [], [ +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#include #include ]) -- cgit v1.2.3