[PATCH:libdrm] include <sys/sysmacros.h> directly for major() and minor()

Alan Coopersmith alan.coopersmith at oracle.com
Mon Jul 6 17:45:25 PDT 2015


Linux seems to pick this up via another header, but Solaris needs it
explictly included, or we get undefined symbol errors for major & minor.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 libkms/linux.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libkms/linux.c b/libkms/linux.c
index 4d47148..f1767c8 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -40,6 +40,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #include "libdrm_macros.h"
 #include "internal.h"
-- 
1.7.9.2



More information about the dri-devel mailing list