diff --git a/configure.ac b/configure.ac index 001fd3da..2cf9a190 100644 --- a/configure.ac +++ b/configure.ac @@ -53,7 +53,7 @@ AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE AC_FUNC_ALLOCA -AC_CHECK_HEADERS([sys/mkdev.h]) +AC_CHECK_HEADERS([sys/mkdev.h sys/sysctl.h]) # Initialize libtool LT_PREREQ([2.2]) diff --git a/xf86drmMode.c b/xf86drmMode.c index f4b8d146..529429e8 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -46,6 +46,9 @@ #include #include #include +#ifdef HAVE_SYS_SYSCTL_H +#include +#endif #include #include