diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-12 11:28:03 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-12 11:28:03 +0000 |
commit | 309c3053481b62acea44176015e6ee2eea218a12 (patch) | |
tree | b15c5e55f467d82c76370ae169645dc4f5e61bba /gcc/ada/gsocket.h | |
parent | 0de83fa2c8a4b2ab39f00091f3b116e2e6bee685 (diff) | |
download | gcc-309c3053481b62acea44176015e6ee2eea218a12.tar.gz |
2011-12-12 Tristan Gingold <gingold@adacore.com>
* mlib-tgt-specific-xi.adb: (Get_Target_Prefix): Simplify code.
2011-12-12 Thomas Quinot <quinot@adacore.com>
* par_sco.adb: Adjust dominant marker for branches of CASE
statements.
2011-12-12 Thomas Quinot <quinot@adacore.com>
* gsocket.h, s-oscons-tmplt.c: Ensure we do not include any system
header file prior to redefining FD_SETSIZE.
2011-12-12 Ed Schonberg <schonberg@adacore.com>
* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): In
a generic context the aspect expressions may not have been
preanalyzed if there was no previous freeze point, so the
expressions must be preanalyzed now, and there is no conformance
to check for visibility changes.
2011-12-12 Matthew Heaney <heaney@adacore.com>
* a-convec.adb, a-coinve.adb, a-cobove.adb (Iterator): Use
subtype Index_Type'Base for Index component (Finalize): Remove
unnecessary access check (First, Last): Cursor return value
depends on iterator index value (Iterate): Use start position as
iterator index value (Next, Previous): Forward to corresponding
cursor-based operation.
* a-cborma.adb (Iterate): Properly initialize iterator object (with 0
as node index).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182226 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r-- | gcc/ada/gsocket.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h index 7763b1801de..713053d6235 100644 --- a/gcc/ada/gsocket.h +++ b/gcc/ada/gsocket.h @@ -6,7 +6,7 @@ * * * C Header File * * * - * Copyright (C) 2004-2010, Free Software Foundation, Inc. * + * Copyright (C) 2004-2011, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -58,8 +58,11 @@ /* For Tru64 */ #endif -#include <limits.h> -#include <errno.h> +/** No system header may be included prior to this point since on some targets + ** we need to redefine FD_SETSIZE. + **/ + +/* Target-specific includes and definitions */ #if defined(__vxworks) #include <vxWorks.h> @@ -163,6 +166,8 @@ #elif defined(VMS) #define FD_SETSIZE 4096 +#include <sys/types.h> +#include <sys/time.h> #ifndef IN_RTS /* These DEC C headers are not available when building with GCC */ #include <in.h> @@ -173,6 +178,9 @@ #endif +#include <limits.h> +#include <errno.h> + #if defined (__vxworks) && ! defined (__RTP__) #include <sys/times.h> #else @@ -180,11 +188,11 @@ #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 build procedure for an RTEMS GNAT toolset requires that - * you build a C/C++ toolset, then build and install RTEMS with - * --enable-multilib, and finally build the Ada part of the toolset. + * 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 + * build procedure for an RTEMS GNAT toolset requires that you build a C/C++ + * toolset, then build and install RTEMS with --enable-multilib, and finally + * build the Ada part of the toolset. */ #if !(defined (VMS) || defined (__MINGW32__)) #include <sys/socket.h> |