aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Coopersmith2015-07-08 12:41:43 -0500
committerEmil Velikov2015-07-13 13:38:28 -0500
commitdfed5e18f35e1a3b5d5b31ee11ada55a0d80abe1 (patch)
tree502ebdfce505fbcec5b8e3d3b6b51026bc2c7ac7 /libkms/linux.c
parentfc8c3e23fb990efd620ef9d9bf3b91686aecc934 (diff)
downloadexternal-libdrm-dfed5e18f35e1a3b5d5b31ee11ada55a0d80abe1.tar.gz
external-libdrm-dfed5e18f35e1a3b5d5b31ee11ada55a0d80abe1.tar.xz
external-libdrm-dfed5e18f35e1a3b5d5b31ee11ada55a0d80abe1.zip
include <sys/types.h> & <sys/mkdev.h> directly for major() and minor()
Linux seems to pick these up via another header, but Solaris needs them explicitly included, or we get undefined symbol errors for major & minor. v2: use headers documented in makedev(3C) man page instead of sysmacros.h Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> v3 [Emil Velikov]: include sys/mkdev.h only when available. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'libkms/linux.c')
-rw-r--r--libkms/linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libkms/linux.c b/libkms/linux.c
index 4d47148a..b735527c 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -40,6 +40,10 @@
40#include <string.h> 40#include <string.h>
41#include <unistd.h> 41#include <unistd.h>
42#include <sys/stat.h> 42#include <sys/stat.h>
43#include <sys/types.h>
44#ifdef HAVE_SYS_MKDEV_H
45#include <sys/mkdev.h>
46#endif
43 47
44#include "libdrm_macros.h" 48#include "libdrm_macros.h"
45#include "internal.h" 49#include "internal.h"