Skip to content

open_console.c: fix major() build failure due to glibc 2.28#1

Open
giuliobenetti wants to merge 1 commit intoDistrotech:distrotech-gpmfrom
giuliobenetti:distrotech-gpm
Open

open_console.c: fix major() build failure due to glibc 2.28#1
giuliobenetti wants to merge 1 commit intoDistrotech:distrotech-gpmfrom
giuliobenetti:distrotech-gpm

Conversation

@giuliobenetti
Copy link
Copy Markdown

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

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>
@giuliobenetti
Copy link
Copy Markdown
Author

I've sent this patch to Mailing List too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant