diff options
-rw-r--r-- | configure.ac | 10 |
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. |
432 | AC_CHECK_HEADERS([net/route.h], [], [], [ | 431 | # sys/sysctl.h also requires sys/param.h |
432 | AC_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 | ||