summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--xf86drmMode.c3
2 files changed, 4 insertions, 1 deletions
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 <stdint.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#ifdef HAVE_SYS_SYSCTL_H
+#include <sys/sysctl.h>
+#endif
#include <stdio.h>
#include <stdbool.h>