From d3427da9faecade6a373e9691c0e77861686e222 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 17 Apr 2015 13:48:49 -0500 Subject: fix compile of musl toolchain --- toolchain/gcc/patches/4.9.2/gcc.musl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit v1.2.3