520d354235
The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, Java, and Go, as well as libraries for these languages (libstdc++, libgcj,...). This package provides the snapshot release of version 5. On NetBSD a working cabsl function must be present in libm to build gfortran. This has been added to -current on 2014/10/10 and to NetBSD7 on 2014/10/13.
27 lines
738 B
C
27 lines
738 B
C
$NetBSD: patch-gcc_system.h,v 1.1 2015/07/16 12:03:36 ryoon 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 ()
|