summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2017-10-05 17:46:48 +0000
committerFelix Fietkau2017-10-05 19:14:43 +0000
commit07a99a83f21ac6d23ec26affdd032424aff6a6e9 (patch)
tree2d8859471c8d57feef960168b637720d90828fd3
parent603900ef820d20d96a10032160bf6c67203b33e6 (diff)
downloadopenwrt-07a99a83f21ac6d23ec26affdd032424aff6a6e9.tar.gz
gcc: fix build error with macOS + Xcode 9
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch b/toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch
new file mode 100644
index 0000000000..37c774e0b2
--- /dev/null
+++ b/toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch
@@ -0,0 +1,10 @@
+--- a/gcc/system.h
++++ b/gcc/system.h
+@@ -216,6 +216,7 @@ extern int errno;
+
+ #ifdef __cplusplus
+ # include <algorithm>
++# include <map>
+ # include <cstring>
+ # include <utility>
+ #endif