gcc: fix build error with macOS + Xcode 9
authorFelix Fietkau <nbd@nbd.name>
Thu, 5 Oct 2017 17:46:48 +0000 (19:46 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Oct 2017 19:16:25 +0000 (21:16 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch [new file with mode: 0644]

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 (file)
index 0000000..37c774e
--- /dev/null
@@ -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