[source] gcc: fix build error with macOS + Xcode 9

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 5 12:58:35 PDT 2017


nbd pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/a999f91ca3f9cf0ec57de2dc62d7a77ea45822c2

commit a999f91ca3f9cf0ec57de2dc62d7a77ea45822c2
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Oct 5 19:46:48 2017 +0200

    gcc: fix build error with macOS + Xcode 9
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../gcc/patches/5.4.0/030-macos-header-fix-backport.patch      | 10 ++++++++++
 1 file changed, 10 insertions(+)

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 0000000..37c774e
--- /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



More information about the lede-commits mailing list