This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Fix PR ada/79903
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 08 Mar 2017 10:20:41 +0100
- Subject: [Ada] Fix PR ada/79903
- Authentication-results: sourceware.org; auth=none
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 <ttsiodras@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);