summaryrefslogtreecommitdiff
path: root/xf86drm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-03-07 11:44:32 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-03-14 08:37:36 -0700
commit0e1135de5cbb783846a4f7e9ef8a5f953f7c77ae (patch)
tree88b974cf583174951938e218c650fc56d2a04af8 /xf86drm.c
parentba5a0b6274ad9c493ed3ddaf4e13559b9ff55ac1 (diff)
On Solaris, #include <sys/mkdev.h> in xf86drm.c
Needed on Solaris for the definitions of major() & minor() used in drmGetNodeTypeFromFd() and makedev() used in drmOpenMinor() Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 194cd35e..34728bec 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -52,6 +52,9 @@
#include <sys/ioctl.h>
#include <sys/time.h>
#include <stdarg.h>
+#ifdef HAVE_SYS_MKDEV_H
+# include <sys/mkdev.h> /* defines major(), minor(), and makedev() on Solaris */
+#endif
/* Not all systems have MAP_FAILED defined */
#ifndef MAP_FAILED