summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/parted-glibc-compat.patch
blob: edf4afb0d1658333f0f61e634f0ff5e4c3fcdf4e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Include <sys/sysmacros.h> for "major" and "minor".

Taken from upstream:
https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ba5e0451b51c983e40afd123b6e0d3eddb55e610

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