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]

[PATCH] Fix libgfortran inquire.c for AIX


The recent change to inquire.c broke libgfortran on AIX because
string.h was included before io.h.  io.h include libgfortran.h, which
includes config.h and must come first because it can affect system
headers.

The appended patch was bootstrapped on powerpc-ibm-aix5.3.0.0.

Okay?

Thanks, David

       * io/inquire.c: Include io.h before string.h.

Index: inquire.c
===================================================================
--- inquire.c   (revision 162724)
+++ inquire.c   (working copy)
@@ -26,9 +26,9 @@

 /* Implement the non-IOLENGTH variant of the INQUIRY statement */

-#include <string.h>
 #include "io.h"
 #include "unix.h"
+#include <string.h>


 static const char undefined[] = "UNDEFINED";


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