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