summaryrefslogtreecommitdiff
path: root/xf86drmMode.c
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2015-07-06 12:45:31 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-11 21:21:07 +0100
commitfc8c3e23fb990efd620ef9d9bf3b91686aecc934 (patch)
treead2dbbea3fb41324c7911e7d0cd317c43c2108ac /xf86drmMode.c
parent5ba34e1aeed3c343bc9b53727220449d244b3296 (diff)
Fix headers inclusion in xf86drmMode.c
Add sys/sysctl.h to get sysctlbyname declaration on kFreeBSD Updated by Thorsten “mirabilos” Glaser <t.glaser@tarent.de> to add autoconf check and only include <sys/sysctl.h> if it is detected by configure as it’s unusable on Linux/x32 (and others, e.g. other new architectures). Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c3
1 files changed, 3 insertions, 0 deletions
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>