diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2008-04-07 12:31:41 +0000 |
---|---|---|
committer | Matthias Klose <doko@gcc.gnu.org> | 2008-04-07 12:31:41 +0000 |
commit | 7437c8d44912ec6db96029cb6a835821cdf85d9b (patch) | |
tree | c4c189f4e345c4b9a9a9df89c2f784f91abfe95c /gcc/ada/sysdep.c | |
parent | 1dab7b355e2f51c4fd3aedecb304f15bfee99d6c (diff) | |
download | gcc-7437c8d44912ec6db96029cb6a835821cdf85d9b.zip gcc-7437c8d44912ec6db96029cb6a835821cdf85d9b.tar.gz gcc-7437c8d44912ec6db96029cb6a835821cdf85d9b.tar.bz2 |
sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to detect systems using GNU libc.
2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
* sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
detect systems using GNU libc.
* gsocket.h: ditto.
* socket.c: ditto.
* adaint.c: ditto.
* link.c: ditto.
From-SVN: r133979
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index cf51ebe..f0394aa 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -342,7 +342,8 @@ __gnat_ttyname (int filedes) || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \ || defined (__MACHTEN__) || defined (__hpux__) || defined (_AIX) \ || (defined (__svr4__) && defined (i386)) || defined (__Lynx__) \ - || defined (__CYGWIN__) || defined (__FreeBSD__) || defined (__OpenBSD__) + || defined (__CYGWIN__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ + || defined (__GLIBC__) #ifdef __MINGW32__ #if OLD_MINGW @@ -399,7 +400,8 @@ getc_immediate_common (FILE *stream, || (defined (__osf__) && ! defined (__alpha_vxworks)) \ || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \ || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ - || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) + || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ + || defined (__GLIBC__) char c; int nread; int good_one = 0; @@ -418,7 +420,8 @@ getc_immediate_common (FILE *stream, #if defined(linux) || defined (sun) || defined (sgi) || defined (__EMX__) \ || defined (__osf__) || defined (__MACHTEN__) || defined (__hpux__) \ || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ - || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) + || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) \ + || defined (__GLIBC__) eof_ch = termios_rec.c_cc[VEOF]; /* If waiting (i.e. Get_Immediate (Char)), set MIN = 1 and wait for @@ -845,7 +848,7 @@ __gnat_localtime_tzoff (const time_t *timer, struct tm *tp, long *off) /* Darwin, Free BSD, Linux, Tru64, where there exists a component tm_gmtoff in struct tm */ #elif defined (__APPLE__) || defined (__FreeBSD__) || defined (linux) ||\ - (defined (__alpha__) && defined (__osf__)) + (defined (__alpha__) && defined (__osf__)) || defined (__GLIBC__) *off = tp->tm_gmtoff; /* All other platforms: Treat all time values in GMT */ |