diff options
author | Julien Cristau <jcristau@debian.org> | 2015-07-06 12:45:31 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-07-11 21:21:07 +0100 |
commit | fc8c3e23fb990efd620ef9d9bf3b91686aecc934 (patch) | |
tree | ad2dbbea3fb41324c7911e7d0cd317c43c2108ac /configure.ac | |
parent | 5ba34e1aeed3c343bc9b53727220449d244b3296 (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 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 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]) |