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/adaint.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/adaint.c')
-rw-r--r-- | gcc/ada/adaint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index b65a1c7..72ebec7 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -888,7 +888,7 @@ __gnat_open_new_temp (char *path, int fmode) strcpy (path, "GNAT-XXXXXX"); #if (defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) \ - || defined (linux)) && !defined (__vxworks) + || defined (linux) || defined(__GLIBC__)) && !defined (__vxworks) return mkstemp (path); #elif defined (__Lynx__) mktemp (path); @@ -981,7 +981,7 @@ __gnat_tmp_name (char *tmp_filename) } #elif defined (linux) || defined (__FreeBSD__) || defined (__NetBSD__) \ - || defined (__OpenBSD__) + || defined (__OpenBSD__) || defined(__GLIBC__) #define MAX_SAFE_PATH 1000 char *tmpdir = getenv ("TMPDIR"); @@ -3030,7 +3030,7 @@ void GetTimeAsFileTime(LPFILETIME pTime) } #endif -#if defined (linux) +#if defined (linux) || defined(__GLIBC__) /* pthread affinity support */ int __gnat_pthread_setaffinity_np (pthread_t th, |