Commit 2ff555ff by Thanassis Tsiodras Committed by Eric Botcazou

re PR ada/79903 (When building GCC-cross compiler for RTEMS/SPARC with Ada…

re PR ada/79903 (When building GCC-cross compiler for  RTEMS/SPARC with Ada support, the build fails because of missing #ifdef)

	PR ada/79903
	* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.

From-SVN: r245972
parent 4f8fe72b
2017-03-08 Thanassis Tsiodras <ttsiodras@gmail.com>
PR ada/79903
* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.
2017-03-08 Eric Botcazou <ebotcazou@adacore.com>
PR ada/79945
......
......@@ -202,7 +202,7 @@ __gnat_gethostbyaddr (const char *addr, int len, int type,
struct hostent *rh;
int ri;
#if defined(__linux__) || defined(__GLIBC__)
#if defined(__linux__) || defined(__GLIBC__) || defined(__rtems__)
(void) gethostbyaddr_r (addr, len, type, ret, buf, buflen, &rh, h_errnop);
#else
rh = gethostbyaddr_r (addr, len, type, ret, buf, buflen, h_errnop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment