diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-08-12 19:49:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel@gcc.gnu.org> | 2014-08-12 19:49:26 +0000 |
commit | 06a1d02efd4a977fd06774b960ce2d21104ef5e0 (patch) | |
tree | 709187b45db90a64368d18f5ce9095b7c0cfc7a0 /gcc/ada/gsocket.h | |
parent | 809981faed9b0e863a97e81699a6615ed6844397 (diff) | |
download | gcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.zip gcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.tar.gz gcc-06a1d02efd4a977fd06774b960ce2d21104ef5e0.tar.bz2 |
socket.c: For RTEMS, use correct prototype of gethostbyname_r().
2014-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* socket.c: For RTEMS, use correct prototype of gethostbyname_r().
* gsocket.h Add include of <unistd.h> on RTEMS.
From-SVN: r213884
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r-- | gcc/ada/gsocket.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h index f139d72..2034137 100644 --- a/gcc/ada/gsocket.h +++ b/gcc/ada/gsocket.h @@ -184,6 +184,11 @@ #include <sys/time.h> #endif +#if defined(__rtems__) +#include <unistd.h> +/* Required, for read(), write(), and close() */ +#endif + /* * RTEMS has these .h files but not until you have built and installed RTEMS. * When building a C/C++ toolset, you also build the newlib C library, so the |