re PR ada/79903 (When building GCC-cross compiler for RTEMS/SPARC with Ada support...
authorThanassis Tsiodras <ttsiodras@gmail.com>
Wed, 8 Mar 2017 09:20:17 +0000 (09:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 8 Mar 2017 09:20:17 +0000 (09:20 +0000)
PR ada/79903
* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.

From-SVN: r245972

gcc/ada/ChangeLog
gcc/ada/socket.c

index 549559b..d592da3 100644 (file)
@@ -1,3 +1,8 @@
+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
index f5fb663..5cdd656 100644 (file)
@@ -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);