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/socket.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/socket.c')
-rw-r--r-- | gcc/ada/socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index 913d1ca..53620c4 100644 --- a/gcc/ada/socket.c +++ b/gcc/ada/socket.c @@ -206,7 +206,7 @@ __gnat_safe_gethostbyname (const char *name, struct hostent *rh; int ri; -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) (void) gethostbyname_r (name, ret, buf, buflen, &rh, h_errnop); #else rh = gethostbyname_r (name, ret, buf, buflen, h_errnop); @@ -223,7 +223,7 @@ __gnat_safe_gethostbyaddr (const char *addr, int len, int type, struct hostent *rh; int ri; -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) (void) gethostbyaddr_r (addr, len, type, ret, buf, buflen, &rh, h_errnop); #else rh = gethostbyaddr_r (addr, len, type, ret, buf, buflen, h_errnop); @@ -239,7 +239,7 @@ __gnat_safe_getservbyname (const char *name, const char *proto, struct servent *rh; int ri; -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) (void) getservbyname_r (name, proto, ret, buf, buflen, &rh); #else rh = getservbyname_r (name, proto, ret, buf, buflen); @@ -255,7 +255,7 @@ __gnat_safe_getservbyport (int port, const char *proto, struct servent *rh; int ri; -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) (void) getservbyport_r (port, proto, ret, buf, buflen, &rh); #else rh = getservbyport_r (port, proto, ret, buf, buflen); |