This (apparently) fixes the build of the runtime on RTEMS.
Tested on x86-64/Linux, applied on mainline and 6 branch.
2017-03-08 Thanassis Tsiodras <ttsiod...@gmail.com>
PR ada/79903
* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.
--
Eric Botcazou
Index: socket.c
===================================================================
--- socket.c (revision 245628)
+++ socket.c (working copy)
@@ -202,7 +202,7 @@ __gnat_gethostbyaddr (const char *addr,
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);