[Ada] Fix bootstrapping on darwin9/10 (PR ada/64349)
Arnaud Charlet
charlet@adacore.com
Fri Jan 30 16:35:00 GMT 2015
Avoid possible warning on darwin during compiler build.
Should hopefully close PR 64349, committed on trunk
2015-01-30 Tristan Gingold <gingold@adacore.com>
PR ada/64349
* env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
-------------- next part --------------
Index: env.c
===================================================================
--- env.c (revision 220273)
+++ env.c (working copy)
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 2005-2014, Free Software Foundation, Inc. *
+ * Copyright (C) 2005-2015, 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- *
@@ -30,15 +30,21 @@
****************************************************************************/
#ifdef IN_RTS
-#include "tconfig.h"
-#include "tsystem.h"
+# include "tconfig.h"
+# include "tsystem.h"
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <time.h>
-#ifdef VMS
-#include <unixio.h>
-#endif
+# include <sys/stat.h>
+# include <fcntl.h>
+# include <time.h>
+# ifdef VMS
+# include <unixio.h>
+# endif
+/* We don't have libiberty, so use malloc. */
+# define xmalloc(S) malloc (S)
+#else /* IN_RTS */
+# include "config.h"
+# include "system.h"
+#endif /* IN_RTS */
#if defined (__MINGW32__)
#include <stdlib.h>
@@ -71,13 +77,6 @@
#endif
#endif
-/* We don't have libiberty, so use malloc. */
-#define xmalloc(S) malloc (S)
-#else /* IN_RTS */
-#include "config.h"
-#include "system.h"
-#endif /* IN_RTS */
-
#ifdef __cplusplus
extern "C" {
#endif
More information about the Gcc-patches
mailing list