diff options
author | Ian Ray <ianjray@me.com> | 2013-05-23 21:03:34 +0300 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-01 23:33:27 -0700 |
commit | b35a2d568a62155077252c3487a44fa988f34d80 (patch) | |
tree | 908026f3b9c19278a5611bba61e84cbad0b86d0a | |
parent | 9ca12e9f9d7494c5c38e4bcded768360d681f77d (diff) |
Conditionally include sys/sysctl.h
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | expand.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 34f25e1f..31675186 100644 --- a/configure.ac +++ b/configure.ac @@ -511,7 +511,7 @@ LIBS=$LIBS_COMMON # Check presense of various header files # -AC_CHECK_HEADERS([getopt.h termios.h sys/resource.h term.h ncurses/term.h ncurses.h curses.h stropts.h siginfo.h sys/select.h sys/ioctl.h execinfo.h spawn.h]) +AC_CHECK_HEADERS([getopt.h termios.h sys/resource.h term.h ncurses/term.h ncurses.h curses.h stropts.h siginfo.h sys/select.h sys/ioctl.h execinfo.h spawn.h sys/sysctl.h]) if test x$local_gettext != xno; then AC_CHECK_HEADERS([libintl.h]) @@ -18,7 +18,9 @@ parameter expansion. #include <limits.h> #include <sys/param.h> #include <sys/types.h> +#ifdef HAVE_SYS_SYSCTL_H #include <sys/sysctl.h> +#endif #include <termios.h> #include <dirent.h> #include <sys/stat.h> |