summaryrefslogtreecommitdiff
path: root/cross/avr-gcc
diff options
context:
space:
mode:
authorjoerg <joerg>2014-09-10 12:11:43 +0000
committerjoerg <joerg>2014-09-10 12:11:43 +0000
commitf4b88a4f507cbfecddfedf2ec666ed5d88c6fd57 (patch)
treeb6384d2854952b3caa742e7dfafc7d014603ae71 /cross/avr-gcc
parent903d631af7b4a80017c9987bd7ac7eb77c9019d4 (diff)
downloadpkgsrc-f4b88a4f507cbfecddfedf2ec666ed5d88c6fd57.tar.gz
Don't redefine putc and friends on NetBSD.
Diffstat (limited to 'cross/avr-gcc')
-rw-r--r--cross/avr-gcc/distinfo3
-rw-r--r--cross/avr-gcc/patches/patch-gcc_system.h27
2 files changed, 29 insertions, 1 deletions
diff --git a/cross/avr-gcc/distinfo b/cross/avr-gcc/distinfo
index a3ce2f0bf30..89ecdb98a61 100644
--- a/cross/avr-gcc/distinfo
+++ b/cross/avr-gcc/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.9 2014/08/29 04:26:46 mef Exp $
+$NetBSD: distinfo,v 1.10 2014/09/10 12:11:43 joerg Exp $
SHA1 (gcc-4.8.3.tar.bz2) = da0a2b9ec074f2bf624a34f3507f812ebb6e4dce
RMD160 (gcc-4.8.3.tar.bz2) = 2c7214ff607cbe822282c04d1d6f9fea765c82c5
Size (gcc-4.8.3.tar.bz2) = 86126808 bytes
SHA1 (patch-ab) = 4396719b8398cf9eb1f939c447dede250ceb4e26
SHA1 (patch-gcc_cp_cfns.h) = d657e8ecde1fc73eebccb4f790f3b266ee2d7a6d
+SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783
diff --git a/cross/avr-gcc/patches/patch-gcc_system.h b/cross/avr-gcc/patches/patch-gcc_system.h
new file mode 100644
index 00000000000..56bfd960a52
--- /dev/null
+++ b/cross/avr-gcc/patches/patch-gcc_system.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-gcc_system.h,v 1.1 2014/09/10 12:11:43 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 ()