summaryrefslogtreecommitdiff
path: root/libweston/weston-launch.c
diff options
context:
space:
mode:
Diffstat (limited to 'libweston/weston-launch.c')
-rw-r--r--libweston/weston-launch.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c
index c8e1513d..1adcf21a 100644
--- a/libweston/weston-launch.c
+++ b/libweston/weston-launch.c
@@ -42,7 +42,6 @@
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/signalfd.h>
-#include <sys/sysmacros.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
@@ -93,6 +92,14 @@ drmSetMaster(int drm_fd)
#endif
+/* major()/minor() */
+#ifdef MAJOR_IN_MKDEV
+# include <sys/mkdev.h>
+#endif
+#ifdef MAJOR_IN_SYSMACROS
+# include <sys/sysmacros.h>
+#endif
+
struct weston_launch {
struct pam_conv pc;
pam_handle_t *ph;