From 0fd214d89fa970b967c1aaf5613f145c869db2b1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Nov 2020 11:57:23 +0100 Subject: [PATCH] tools/fakeroot: fix build on macOS with recent Xcode versions Signed-off-by: Felix Fietkau --- tools/fakeroot/patches/100-portability.patch | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tools/fakeroot/patches/100-portability.patch b/tools/fakeroot/patches/100-portability.patch index 3835a7792bd..5713c9e3fe8 100644 --- a/tools/fakeroot/patches/100-portability.patch +++ b/tools/fakeroot/patches/100-portability.patch @@ -25,7 +25,7 @@ #ifdef HAVE_SYS_ACL_H #include #endif /* HAVE_SYS_ACL_H */ -@@ -1894,7 +1901,7 @@ ssize_t fremovexattr(int fd, const char +@@ -1894,7 +1901,7 @@ ssize_t fremovexattr(int fd, const char } #endif /* HAVE_FREMOVEXATTR */ @@ -110,3 +110,23 @@ if(argname){ print "static __inline__ " ret " next_" name, argtype " __attribute__((always_inline));" > tmpffile; print "static __inline__ " ret " next_" name, argtype " {" > tmpffile; +--- a/configure.ac ++++ b/configure.ac +@@ -110,6 +110,7 @@ for first in size_t int; do + #include + #endif + #include ++#include + #ifdef HAVE_GRP_H + #include + #endif +--- a/configure ++++ b/configure +@@ -12847,6 +12847,7 @@ for first in size_t int; do + #include + #endif + #include ++#include + #ifdef HAVE_GRP_H + #include + #endif -- 2.30.2