diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-27 22:25:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-27 22:25:31 +0000 |
commit | b4b58d17670cacb22dc271407383f41ff910a7a0 (patch) | |
tree | 9edcf01935255033892bdf96dba0b0c7a6a43b88 /gen-soconn | |
parent | 9610456f97b829659cd1429b4af81547725cbc80 (diff) |
2007-09-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* gsocket.h: This version of gsocket.h compiles in and out of the GCC
build system.
Diffstat (limited to 'gen-soconn')
-rw-r--r-- | gen-soconn/ChangeLog | 5 | ||||
-rw-r--r-- | gen-soconn/gsocket.h | 11 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gen-soconn/ChangeLog b/gen-soconn/ChangeLog index 72f890c..fdacadf 100644 --- a/gen-soconn/ChangeLog +++ b/gen-soconn/ChangeLog @@ -1,4 +1,9 @@ 2007-09-27 Joel Sherrill <joel.sherrill@oarcorp.com> + * gsocket.h: This version of gsocket.h compiles in and out of the GCC + build system. + +2007-09-27 Joel Sherrill <joel.sherrill@oarcorp.com> + * ChangeLog, Makefile, README, gen-soccon.c, gsocket.h, init.c: New files. diff --git a/gen-soconn/gsocket.h b/gen-soconn/gsocket.h index a380788..779a1b1 100644 --- a/gen-soconn/gsocket.h +++ b/gen-soconn/gsocket.h @@ -139,7 +139,16 @@ #include <sys/time.h> #endif -#if !(defined (VMS) || defined (__MINGW32__) || defined(__rtems__)) +/* + * RTEMS has these files but you only have the .h files in the C library + * when building GNAT. So networking .h files are not available until + * you install RTEMS. Because this file is also included from + * gen-soccon.c which is built to run on RTEMS, we must distinguish + * between IN_RTS and using this file to compile gen-soccon. + * + */ +#if !(defined (VMS) || defined (__MINGW32__) || \ + (defined(__rtems__) && defined(IN_RTS))) #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> |