summaryrefslogtreecommitdiff
path: root/cross/gcc-mips-current/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2014-05-27 09:53:37 +0000
committerjoerg <joerg>2014-05-27 09:53:37 +0000
commit783fa086d97b46ba5294eefd40cbc81b9fea996a (patch)
treec3d9c840abff426a3eddece9d1aa261e561b905f /cross/gcc-mips-current/patches
parent9ea85fb4dd2e9298eaded20ac28bcba06e4b19eb (diff)
downloadpkgsrc-783fa086d97b46ba5294eefd40cbc81b9fea996a.tar.gz
Be a bit more friendly toward libc++.
Diffstat (limited to 'cross/gcc-mips-current/patches')
-rw-r--r--cross/gcc-mips-current/patches/patch-gcc_system.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/cross/gcc-mips-current/patches/patch-gcc_system.h b/cross/gcc-mips-current/patches/patch-gcc_system.h
new file mode 100644
index 00000000000..4c387e6b016
--- /dev/null
+++ b/cross/gcc-mips-current/patches/patch-gcc_system.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-gcc_system.h,v 1.1 2014/05/27 09:53:37 joerg Exp $
+
+--- gcc/system.h.orig 2013-04-29 18:37:29.000000000 +0000
++++ gcc/system.h
+@@ -72,18 +72,22 @@ along with GCC; see the file COPYING3.
+
+ #if defined HAVE_DECL_PUTC_UNLOCKED && HAVE_DECL_PUTC_UNLOCKED
+
++# if !defined(__NetBSD__)
+ # ifdef HAVE_PUTC_UNLOCKED
+ # undef putc
+ # define putc(C, Stream) putc_unlocked (C, Stream)
+ # endif
++# endif
+ # ifdef HAVE_PUTCHAR_UNLOCKED
+ # undef putchar
+ # define putchar(C) putchar_unlocked (C)
+ # endif
++# if !defined(__NetBSD__)
+ # ifdef HAVE_GETC_UNLOCKED
+ # undef getc
+ # define getc(Stream) getc_unlocked (Stream)
+ # endif
++# endif
+ # ifdef HAVE_GETCHAR_UNLOCKED
+ # undef getchar
+ # define getchar() getchar_unlocked ()