aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorMike Frysinger2016-06-21 11:18:15 -0500
committerEmil Velikov2016-07-06 10:58:38 -0500
commit8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd (patch)
tree1e270c4f8ec18d4c7e7b27b11e2d0f0f61442989 /libkms
parent50d3c85bdb4ac0b3d546336605a722889aff7066 (diff)
downloadexternal-libdrm-8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd.tar.gz
external-libdrm-8c8d5dd76fb80637031e824a48ceaa0f9f65d2dd.tar.xz
external-libdrm-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 'libkms')
-rw-r--r--libkms/linux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libkms/linux.c b/libkms/linux.c
index 6e0da830..69eb1aa4 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -41,9 +41,12 @@
41#include <unistd.h> 41#include <unistd.h>
42#include <sys/stat.h> 42#include <sys/stat.h>
43#include <sys/types.h> 43#include <sys/types.h>
44#ifdef HAVE_SYS_MKDEV_H 44#ifdef MAJOR_IN_MKDEV
45#include <sys/mkdev.h> 45#include <sys/mkdev.h>
46#endif 46#endif
47#ifdef MAJOR_IN_SYSMACROS
48#include <sys/sysmacros.h>
49#endif
47 50
48#include "libdrm_macros.h" 51#include "libdrm_macros.h"
49#include "internal.h" 52#include "internal.h"