diff options
author | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-12 19:49:26 +0000 |
---|---|---|
committer | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-12 19:49:26 +0000 |
commit | 5663a70936a9f09291707d8995c466de63c641e8 (patch) | |
tree | 709187b45db90a64368d18f5ce9095b7c0cfc7a0 /gcc/ada/socket.c | |
parent | 04c96bbc52a64466b5cca5455ad56f03b53d2971 (diff) | |
download | gcc-5663a70936a9f09291707d8995c466de63c641e8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r-- | gcc/ada/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c index 4a9e6ad7b44..ad88268f369 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); |