Taken from https://github.com/markfasheh/duperemove/pull/169
Bug: https://bugs.gentoo.org/607376
Closes: https://github.com/gentoo/gentoo/pull/5464
S=${WORKDIR}/${P/_/.}
+PATCHES=( "${FILESDIR}/${P}-sysmacros.patch" )
+
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall"
}
--- /dev/null
+--- a/dbfile.c 2016-09-27 22:28:49.000000000 +0200
++++ b/dbfile.c 2017-08-17 18:23:30.768591897 +0200
+@@ -8,6 +8,7 @@
+ #include <inttypes.h>
+ #include <stddef.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+
+ #include "csum.h"
+ #include "filerec.h"