From fc8c3e23fb990efd620ef9d9bf3b91686aecc934 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 6 Jul 2015 12:45:31 +0100 Subject: Fix headers inclusion in xf86drmMode.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add sys/sysctl.h to get sysctlbyname declaration on kFreeBSD Updated by Thorsten “mirabilos” Glaser to add autoconf check and only include if it is detected by configure as it’s unusable on Linux/x32 (and others, e.g. other new architectures). Reviewed-by: Emil Velikov --- xf86drmMode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xf86drmMode.c') 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 -- cgit v1.2.3