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.

Tested on x86_64-pc-linux-gnu, committed on trunk

2019-07-10  Corentin Gay  <g...@adacore.com>

gcc/ada/

        * sysdep.c: Put include directive for 'vxWorks.h' before any
        other VxWorks headers.
--- gcc/ada/sysdep.c
+++ 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"

Reply via email to