This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][Ada] Updated GNAT Socket So *-rtems* Continues to Work


Thomas Quinot wrote:
* Joel Sherrill, 2008-07-22 :

#elif defined(VMS)
#define FD_SETSIZE 4096
#ifndef IN_RTS

^^^^^^^^^ Checking IN_RTS means not included for VMS when building run-time.

Hmmm indeed, some of the headers are skipped. That said, some others
are included and are unavoidable (I'm specifically thinking of
sys/time.h, which is required for fd_set handling macros) so the
argument remains valid that target headers must be available to compile
socket.c.
You can claim that but it is incorrect for RTEMS.  Some
of the header files are owned by the newlib C library which is indeed
built at the same time as the C/C++ compiler in stage 1
of building an Ada cross.  But there are many .h files which are
owned by RTEMS including networking and some POSIX services
(sem.h, mqueue.h) which are not provided by newlib.
Thomas.

--
Thomas Quinot, Ph.D. ** quinot@adacore.com ** Senior Software Engineer
AdaCore -- Paris, France -- New York, USA


--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]