summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-04-17 13:48:49 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-04-17 13:49:08 -0500
commitd3427da9faecade6a373e9691c0e77861686e222 (patch)
tree9420c2b5501a21d980612940f7e51c2cda41ccec
parent84cafece9267d9c4674693d6962faddd8b2df048 (diff)
fix compile of musl toolchain
-rw-r--r--toolchain/gcc/patches/4.9.2/gcc.musl14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.9.2/gcc.musl b/toolchain/gcc/patches/4.9.2/gcc.musl
index a55a266a7..2005cd0e9 100644
--- a/toolchain/gcc/patches/4.9.2/gcc.musl
+++ b/toolchain/gcc/patches/4.9.2/gcc.musl
@@ -653,3 +653,17 @@ diff -Nur gcc-4.9.2.orig/libstdc++-v3/configure.host gcc-4.9.2/libstdc++-v3/conf
hpux*)
os_include_dir="os/hpux"
;;
+diff -Nur gcc-4.9.2.orig/libstdc++-v3/config/os/gnu-linux/os_defines.h gcc-4.9.2/libstdc++-v3/config/os/gnu-linux/os_defines.h
+--- gcc-4.9.2.orig/libstdc++-v3/config/os/gnu-linux/os_defines.h 2014-01-02 16:30:10.000000000 -0600
++++ gcc-4.9.2/libstdc++-v3/config/os/gnu-linux/os_defines.h 2015-04-13 23:58:30.912857273 -0500
+@@ -41,8 +41,10 @@
+ // Provide a declaration for the possibly deprecated gets function, as
+ // glibc 2.15 and later does not declare gets for ISO C11 when
+ // __GNU_SOURCE is defined.
++#if defined(__GLIBC_PREREQ)
+ #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
+ # undef _GLIBCXX_HAVE_GETS
+ #endif
++#endif
+
+ #endif