From b4b58d17670cacb22dc271407383f41ff910a7a0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 27 Sep 2007 22:25:31 +0000 Subject: 2007-09-27 Joel Sherrill * gsocket.h: This version of gsocket.h compiles in and out of the GCC build system. --- gen-soconn/ChangeLog | 5 +++++ gen-soconn/gsocket.h | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gen-soconn/ChangeLog b/gen-soconn/ChangeLog index 72f890c..fdacadf 100644 --- a/gen-soconn/ChangeLog +++ b/gen-soconn/ChangeLog @@ -1,3 +1,8 @@ +2007-09-27 Joel Sherrill + + * gsocket.h: This version of gsocket.h compiles in and out of the GCC + build system. + 2007-09-27 Joel Sherrill * 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 #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 #include #include -- cgit v1.2.3