Blame SOURCES/gpm-1.20.7-sysmacros.patch

b1a9ba
diff -r -u gpm-1.20.7-orig/src/daemon/open_console.c gpm-1.20.7/src/daemon/open_console.c
b1a9ba
--- gpm-1.20.7-orig/src/daemon/open_console.c	2012-10-26 16:21:38.000000000 -0500
b1a9ba
+++ gpm-1.20.7/src/daemon/open_console.c	2017-10-10 13:40:39.896316258 -0500
b1a9ba
@@ -23,6 +23,10 @@
b1a9ba
 #include <sys/stat.h>               /* stat()            */
b1a9ba
 #include <sys/ioctl.h>              /* ioctl             */
b1a9ba
 
b1a9ba
+#ifdef HAVE_SYS_SYSMACROS_H
b1a9ba
+#include <sys/sysmacros.h>          /* major() w/newer glibc */
b1a9ba
+#endif
b1a9ba
+
b1a9ba
 /* Linux specific (to be outsourced in gpm2 */
b1a9ba
 #include <linux/serial.h>           /* for serial console check */
b1a9ba
 #include <asm/ioctls.h>            /* for serial console check */