diff options
author | joerg <joerg@pkgsrc.org> | 2014-09-10 12:20:00 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-09-10 12:20:00 +0000 |
commit | 5b713f9ebfc8ff9333e313ddeab411df9f32b82f (patch) | |
tree | 7b60b2701dd6d5ab8a84a02b159e3852632d89c2 /lang/gcc49 | |
parent | 29df70efe2d4105a132e18f56822a3062362f5f5 (diff) | |
download | pkgsrc-5b713f9ebfc8ff9333e313ddeab411df9f32b82f.tar.gz |
Don't redefine putc and friends to fix build on NetBSD with libc++.
Diffstat (limited to 'lang/gcc49')
-rw-r--r-- | lang/gcc49/distinfo | 3 | ||||
-rw-r--r-- | lang/gcc49/patches/patch-gcc_system.h | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/lang/gcc49/distinfo b/lang/gcc49/distinfo index 53582fbbccc..c4e7b94b06d 100644 --- a/lang/gcc49/distinfo +++ b/lang/gcc49/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2014/09/04 18:43:11 jperkin Exp $ +$NetBSD: distinfo,v 1.2 2014/09/10 12:20:00 joerg Exp $ SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449 RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a @@ -17,6 +17,7 @@ SHA1 (patch-gcc_config_netbsd-stdint.h) = fc430c80adda9d3f58eea47816338f697a6598 SHA1 (patch-gcc_configure) = eb52890725d2eabb200275b6cb61fd86d976ee31 SHA1 (patch-gcc_fortran_f95-lang.c) = 9dbac16c146821eed9b06e1e9f0da85ff5c4ee75 SHA1 (patch-gcc_ginclude_stddef.h) = 8af3e4b4058fc623c61e91f5771699f0ce679957 +SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783 SHA1 (patch-include_libiberty.h) = 5254c6a421ae16c71571820f6f07906367f042ba SHA1 (patch-libcilkrts_runtime_os-unix.c) = 165e736decbc6e0e3d905d418d71cf4873927925 SHA1 (patch-libgcc_config.host) = c929bfbd17fcef36ec4f0eeebf27ceca7060d24c diff --git a/lang/gcc49/patches/patch-gcc_system.h b/lang/gcc49/patches/patch-gcc_system.h new file mode 100644 index 00000000000..9996b148df7 --- /dev/null +++ b/lang/gcc49/patches/patch-gcc_system.h @@ -0,0 +1,27 @@ +$NetBSD: patch-gcc_system.h,v 1.1 2014/09/10 12:20:00 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 () |