michaelforney / swc

a library for making a simple Wayland compositor
MIT License
626 stars 53 forks source link

Missing major()/minor() defines on Fedora 29 #47

Closed tokyovigilante closed 5 years ago

tokyovigilante commented 5 years ago

These are defined in <sys/sysmacros.h>.

Patch:

diff --git a/launch/launch.c b/launch/launch.c
index b8cc292..b6f0aa9 100644
--- a/launch/launch.c
+++ b/launch/launch.c
@@ -40,6 +40,7 @@
 #include <sys/stat.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
+#include <sys/sysmacros.h>
 #include <linux/input.h>
 #include <linux/kd.h>
 #include <linux/major.h>
diff --git a/libswc/drm.c b/libswc/drm.c
index 910c034..a9c3ef9 100644
--- a/libswc/drm.c
+++ b/libswc/drm.c
@@ -39,6 +39,7 @@
 #include <unistd.h>
 #include <drm.h>
 #include <xf86drm.h>
+#include <sys/sysmacros.h>
 #include <wld/wld.h>
 #include <wld/drm.h>
 #include <wayland-server.h>
michaelforney commented 5 years ago

Thanks for the report. Should be fixed now.