diff options
-rw-r--r-- | app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild | 1 | ||||
-rw-r--r-- | app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild b/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild index 9cb533303f0d..00729c425482 100644 --- a/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild +++ b/app-cdr/dvd+rw-tools/dvd+rw-tools-7.1-r1.ebuild @@ -23,6 +23,7 @@ src_prepare() { # Linux compiler flags only include -O2 and are incremental sed -i '/FLAGS/s:-O2::' Makefile.m4 + epatch "${FILESDIR}"/${PN}-7.0-sysmacros.patch # Fix compilation when DFORTIFY_SOURCE=2 # https://bugs.gentoo.org/257360 # https://bugzilla.redhat.com/show_bug.cgi?id=426068 diff --git a/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch new file mode 100644 index 000000000000..b65c4c975183 --- /dev/null +++ b/app-cdr/dvd+rw-tools/files/dvd+rw-tools-7.0-sysmacros.patch @@ -0,0 +1,12 @@ +include sysmacros.h explicitly for major()/minor()/etc... + +--- a/growisofs.c ++++ b/growisofs.c +@@ -408,6 +408,7 @@ + # ifndef _GNU_SOURCE + # define _GNU_SOURCE + # endif ++# include <sys/sysmacros.h> + #elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || \ + (defined(__APPLE__) && defined(__MACH__)) + # define off64_t off_t |