PR ada/79903
* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.
From-SVN: r245972
+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
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);