aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger2016-06-21 11:18:15 -0500
committerEmil Velikov2016-07-06 10:58:38 -0500
commit8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd (patch)
tree1e270c4f8ec18d4c7e7b27b11e2d0f0f61442989 /xf86drm.c
parent50d3c85bdb4ac0b3d546336605a722889aff7066 (diff)
downloadexternal-libgbm-8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd.tar.gz
external-libgbm-8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd.tar.xz
external-libgbm-8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd.zip
pull in sys/sysmacros.h when available
This header provides major/minor/makedev funcs under most Linux C libs. Pull it in to fix building with newer versions that drop the implicit include via sys/types.h. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94231 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xf86drm.c b/xf86drm.c
index e99f2e2d..8a858efa 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -54,8 +54,11 @@
54#include <sys/ioctl.h> 54#include <sys/ioctl.h>
55#include <sys/time.h> 55#include <sys/time.h>
56#include <stdarg.h> 56#include <stdarg.h>
57#ifdef HAVE_SYS_MKDEV_H 57#ifdef MAJOR_IN_MKDEV
58# include <sys/mkdev.h> /* defines major(), minor(), and makedev() on Solaris */ 58#include <sys/mkdev.h>
59#endif
60#ifdef MAJOR_IN_SYSMACROS
61#include <sys/sysmacros.h>
59#endif 62#endif
60#include <math.h> 63#include <math.h>
61 64