Re: [PATCH] open_console.c: fix major() build failure due to glibc 2.28

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 15/09/2018 14:55, Giulio Benetti ha scritto:
glibc 2.28 no longer includes <sys/sysmacros.h> from <sys/types.h>,
and therefore <sys/sysmacros.h> must be included explicitly when
major() is used.

This commit adds a patch to directly include <sys/sysmacros.h> into
open_console.c file where major() macro is used.

Signed-off-by: Giulio Benetti <giulio.benetti@xxxxxxxxxxxxxxxx>
---
  src/daemon/open_console.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/src/daemon/open_console.c b/src/daemon/open_console.c
index 98297c9..d7acd40 100644
--- a/src/daemon/open_console.c
+++ b/src/daemon/open_console.c
@@ -22,6 +22,7 @@
  #include <fcntl.h>                  /* open and co.      */
  #include <sys/stat.h>               /* stat()            */
  #include <sys/ioctl.h>              /* ioctl             */
+#include <sys/sysmacros.h>
/* Linux specific (to be outsourced in gpm2 */
  #include <linux/serial.h>           /* for serial console check */


Sorry, it's already upstreamed:
https://github.com/giuliobenetti/gpm/commit/b350aee4ea5785a75cb6ad770f6b768c506ebb70

--
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642
_______________________________________________
gpm mailing list
gpm@xxxxxxxxxxxxxx
https://lists.linux.it/listinfo/gpm




[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]