aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/socket.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-08-12 19:49:26 +0000
committerJoel Sherrill <joel@gcc.gnu.org>2014-08-12 19:49:26 +0000
commit06a1d02efd4a977fd06774b960ce2d21104ef5e0 (patch)
tree709187b45db90a64368d18f5ce9095b7c0cfc7a0 /gcc/ada/socket.c
parent809981faed9b0e863a97e81699a6615ed6844397 (diff)
downloadgcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.zip
gcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.tar.gz
gcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.tar.bz2
socket.c: For RTEMS, use correct prototype of gethostbyname_r().
2014-08-12 Joel Sherrill <joel.sherrill@oarcorp.com> * socket.c: For RTEMS, use correct prototype of gethostbyname_r(). * gsocket.h Add include of <unistd.h> on RTEMS. From-SVN: r213884
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r--gcc/ada/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c
index 4a9e6ad..ad88268 100644
--- a/gcc/ada/socket.c
+++ b/gcc/ada/socket.c
@@ -184,7 +184,7 @@ __gnat_gethostbyname (const char *name,
struct hostent *rh;
int ri;
-#if defined(__linux__) || defined(__GLIBC__)
+#if defined(__linux__) || defined(__GLIBC__) || defined(__rtems__)
(void) gethostbyname_r (name, ret, buf, buflen, &rh, h_errnop);
#else
rh = gethostbyname_r (name, ret, buf, buflen, h_errnop);