1From b350aee4ea5785a75cb6ad770f6b768c506ebb70 Mon Sep 17 00:00:00 2001 2From: Mike Frysinger <vapier@gentoo.org> 3Date: Mon, 14 Mar 2016 15:39:54 -0400 4Subject: [PATCH] fix building w/newer glibc 5 6Linux C libraries are looking to disentangle sysmacros.h from the 7sys/types.h include, so make sure we pull in the header when it is 8found. 9 10Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> 11--- 12 src/daemon/open_console.c | 4 ++++ 13 1 file changed, 4 insertions(+) 14 15diff --git a/src/daemon/open_console.c b/src/daemon/open_console.c 16index 4d6c0af..6dd43e6 100644 17--- a/src/daemon/open_console.c 18+++ b/src/daemon/open_console.c 19@@ -24,6 +24,10 @@ 20 #include <sys/types.h> /* major() */ 21 #include <sys/ioctl.h> /* ioctl */ 22 23+#ifdef HAVE_SYS_SYSMACROS_H 24+#include <sys/sysmacros.h> /* major() w/newer glibc */ 25+#endif 26+ 27 /* Linux specific (to be outsourced in gpm2 */ 28 #include <linux/serial.h> /* for serial console check */ 29 #include <asm/ioctls.h> /* for serial console check */ 30-- 312.17.1 32 33