From a999f91ca3f9cf0ec57de2dc62d7a77ea45822c2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Oct 2017 19:46:48 +0200 Subject: [PATCH] gcc: fix build error with macOS + Xcode 9 Signed-off-by: Felix Fietkau --- .../patches/5.4.0/030-macos-header-fix-backport.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 toolchain/gcc/patches/5.4.0/030-macos-header-fix-backport.patch 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 ++# include + # include + # include + #endif -- 2.30.2