[parted-devel] [PATCH] linux.c: Use sys/sysmacros.h for major/minor

Brian C. Lane bcl at redhat.com
Mon Aug 13 22:35:14 BST 2018


gcc is also going to deprecate this at some point, so start using
sys/sysmacros.h directly.

Resolves: rhbz#1615592
---
 libparted/arch/linux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 4ec3440..8eb54fa 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -36,6 +36,7 @@
 #include <stdbool.h>
 #include <dirent.h>
 #include <sys/ioctl.h>
+#include <sys/sysmacros.h>      /* for major() and minor() */
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/utsname.h>        /* for uname() */
-- 
2.17.1




More information about the parted-devel mailing list