From 7437c8d44912ec6db96029cb6a835821cdf85d9b Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 7 Apr 2008 12:31:41 +0000 Subject: sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to detect systems using GNU libc. 2008-04-07 Aurelien Jarno * 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 --- gcc/ada/adaint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/ada/adaint.c') 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, -- cgit v1.1