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/socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/ada/socket.c') 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); -- cgit v1.1