[parted-devel] [PATCH] linux: Include <sys/sysmacros.h> for major() macro.

Brian C. Lane bcl at redhat.com
Wed Apr 4 16:25:41 UTC 2018


From: "Richard W.M. Jones" <rjones at redhat.com>

Since glibc 2.27 this header is required.
---
 libparted/arch/linux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 31b98ab..7e86b51 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -41,6 +41,7 @@
 #include <sys/utsname.h>        /* for uname() */
 #include <scsi/scsi.h>
 #include <assert.h>
+#include <sys/sysmacros.h>
 #ifdef ENABLE_DEVICE_MAPPER
 #include <libdevmapper.h>
 #endif
-- 
2.14.3




More information about the parted-devel mailing list