diff options
author | ValHue | 2018-10-19 11:14:47 +0200 |
---|---|---|
committer | ValHue | 2018-10-19 11:14:47 +0200 |
commit | add0162397f20545fdb15908605b265891e52983 (patch) | |
tree | beaa08aa0b906af003ce8518518375368935c2d9 /include.patch | |
parent | d37ac6690200c3bc5647276a756026fc928ffb4e (diff) | |
download | aur-libparted.tar.gz |
Update to 3.2-3
Diffstat (limited to 'include.patch')
-rw-r--r-- | include.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include.patch b/include.patch new file mode 100644 index 000000000000..82ca3e48b7ed --- /dev/null +++ b/include.patch @@ -0,0 +1,22 @@ +From ba5e0451b51c983e40afd123b6e0d3eddb55e610 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" <rjones@redhat.com> +Date: Sat, 24 Mar 2018 17:37:02 +0000 +Subject: linux: Include <sys/sysmacros.h> for major() macro. + +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 |