aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Cristau2015-07-06 06:45:31 -0500
committerEmil Velikov2015-07-11 15:21:07 -0500
commitfc8c3e23fb990efd620ef9d9bf3b91686aecc934 (patch)
treead2dbbea3fb41324c7911e7d0cd317c43c2108ac /xf86drmMode.c
parent5ba34e1aeed3c343bc9b53727220449d244b3296 (diff)
downloadexternal-libgbm-fc8c3e23fb990efd620ef9d9bf3b91686aecc934.tar.gz
external-libgbm-fc8c3e23fb990efd620ef9d9bf3b91686aecc934.tar.xz
external-libgbm-fc8c3e23fb990efd620ef9d9bf3b91686aecc934.zip
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 @@
46#include <stdint.h> 46#include <stdint.h>
47#include <stdlib.h> 47#include <stdlib.h>
48#include <sys/ioctl.h> 48#include <sys/ioctl.h>
49#ifdef HAVE_SYS_SYSCTL_H
50#include <sys/sysctl.h>
51#endif
49#include <stdio.h> 52#include <stdio.h>
50#include <stdbool.h> 53#include <stdbool.h>
51 54