From dfed5e18f35e1a3b5d5b31ee11ada55a0d80abe1 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 8 Jul 2015 10:41:43 -0700 Subject: include & 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 v3 [Emil Velikov]: include sys/mkdev.h only when available. Signed-off-by: Emil Velikov --- libkms/linux.c | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ #include #include #include +#include +#ifdef HAVE_SYS_MKDEV_H +#include +#endif #include "libdrm_macros.h" #include "internal.h" -- cgit v1.2.3