From 9ab234e531354d939c2105e8005153d7554f7cdd Mon Sep 17 00:00:00 2001 From: Corentin Gay Date: Wed, 10 Jul 2019 09:01:48 +0000 Subject: [PATCH] [Ada] sysdep.c: correct include directives ordering Some VxWorks headers are relying on types that are defined in `vxWorks.h` but do not include it themselves, we move the include directive for `vxWorks.h` at the top of the include directives. 2019-07-10 Corentin Gay gcc/ada/ * sysdep.c: Put include directive for 'vxWorks.h' before any other VxWorks headers. From-SVN: r273338 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/sysdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index e870be4cc00..61afaff4ad9 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2019-07-10 Corentin Gay + + * sysdep.c: Put include directive for 'vxWorks.h' before any + other VxWorks headers. + 2019-07-10 Eric Botcazou * doc/gnat_rm/implementation_defined_attributes.rst diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index a5f325d90f3..66c29d3718a 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -33,6 +33,7 @@ GNAT Run Time Library */ #ifdef __vxworks +#include "vxWorks.h" #include "ioLib.h" #if ! defined (VTHREADS) #include "dosFsLib.h" @@ -41,7 +42,6 @@ # include "nfsLib.h" #endif #include "selectLib.h" -#include "vxWorks.h" #include "version.h" #if defined (__RTP__) # include "vwModNum.h" -- 2.30.2