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]

Re: [PATCH] Fix libgfortran inquire.c for AIX


Ok, thanks for the patch.

On Sat, Jul 31, 2010 at 17:46, David Edelsohn <dje.gcc@gmail.com> wrote:
> 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";
>



-- 
Janne Blomqvist


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