[gpm] [PATCH] open_console.c: fix major() build failure due to glibc 2.28
Giulio Benetti
giulio.benetti@micronovasrl.com
Sat Sep 15 15:17:02 CEST 2018
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@micronovasrl.com>
> ---
> 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
More information about the gpm
mailing list