# 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
--- /dev/null
+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