diff mbox

[Ada] Fix PR ada/79903

Message ID 1599762.7EjBRvm2vI@polaris
State New
Headers show

Commit Message

Eric Botcazou March 8, 2017, 9:20 a.m. UTC
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__.
diff mbox

Patch

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);