Blame SOURCES/0001-major-and-minor-functions-moved-to-sysmacros.h.patch

766433
From fb98a845d155fdfbd45c22a6b062c3cfbe692a0a Mon Sep 17 00:00:00 2001
766433
From: Sebastian Kisela <skisela@redhat.com>
766433
Date: Wed, 25 Jul 2018 09:18:33 +0200
766433
Subject: [PATCH] major and minor functions moved to sysmacros.h
766433
766433
According to https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD
766433
(glibc changelog) the below happened, therefore explicitly include
766433
<sys/sysmacros.h>
766433
766433
"
766433
...
766433
The macros 'major', 'minor', and 'makedev' are now only available from
766433
the header <sys/sysmacros.h>; not from <sys/types.h> or various other
766433
headers that happen to include <sys/types.h>.  These macros are rarely
766433
used, not part of POSIX nor XSI, and their names frequently collide with
766433
user code; see https://sourceware.org/bugzilla/show_bug.cgi?id=19239 for
766433
further explanation.
766433
766433
<sys/sysmacros.h> is a GNU extension.  Portable programs that require
766433
these macros should first include <sys/types.h>, and then include
766433
<sys/sysmacros.h> if __GNU_LIBRARY__ is defined.
766433
...
766433
"
766433
766433
Signed-off-by: Sebastian Kisela <skisela@redhat.com>
766433
---
766433
 src/lockdev.c        | 1 +
766433
 src/lockdev.c.access | 1 +
766433
 2 files changed, 2 insertions(+)
766433
766433
diff --git a/src/lockdev.c b/src/lockdev.c
766433
index 6e69894..ec86f65 100644
766433
--- a/src/lockdev.c
766433
+++ b/src/lockdev.c
766433
@@ -121,6 +121,7 @@
766433
 #include <sys/stat.h>
766433
 #include <sys/file.h>
766433
 #include <sys/types.h>
766433
+#include <sys/sysmacros.h>
766433
 #include <sys/wait.h>
766433
 #include "lockdev.h"
766433
 #include "ttylock.h"
766433
diff --git a/src/lockdev.c.access b/src/lockdev.c.access
766433
index 9a0fca5..3581938 100644
766433
--- a/src/lockdev.c.access
766433
+++ b/src/lockdev.c.access
766433
@@ -117,6 +117,7 @@
766433
 #include <sys/stat.h>
766433
 #include <sys/file.h>
766433
 #include <sys/types.h>
766433
+#include <sys/sysmacros.h>
766433
 #include <sys/wait.h>
766433
 #include "lockdev.h"
766433
 #include "ttylock.h"
766433
-- 
766433
2.14.4
766433