[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dfa.c fix for gawk compilation on cygwin
From: |
Jim Meyering |
Subject: |
Re: dfa.c fix for gawk compilation on cygwin |
Date: |
Mon, 29 Mar 2010 07:14:22 +0200 |
Aharon Robbins wrote:
> Hi. This was needed (along with another, irrelevent-to-grep change) to allow
> gawk to compile on latest cygwin.
>
> Beats me how it even compiled ok under Linux. :-)
>
> Thanks,
>
> Arnold
> -----------------------------------------------
> Mon Mar 29 05:41:35 2010 Corinna Vinschen <address@hidden>
>
> * dfa.c: Include hard-locale.h after xalloc.h because it needs
> xmalloc.
>
>
> Index: dfa.c
> ===================================================================
> RCS file: /sources/gawk/gawk-stable/dfa.c,v
> retrieving revision 1.26
> diff -u -p -r1.26 dfa.c
> --- dfa.c 25 Mar 2010 19:52:56 -0000 1.26
> +++ dfa.c 26 Mar 2010 09:10:23 -0000
> @@ -91,8 +91,8 @@
>
> #include "regex.h"
> #include "dfa.h"
> -#include "hard-locale.h"
> #include "xalloc.h"
> +#include "hard-locale.h"
Thanks, Arnold.
However, I don't understand how that patch can make a difference.
Other than comments, lib/hard-locale.h is just this:
#ifndef HARD_LOCALE_H_
# define HARD_LOCALE_H_ 1
# include <stdbool.h>
bool hard_locale (int);
#endif /* HARD_LOCALE_H_ */
xalloc.h does not reference "hard_locale"...
What was the compilation failure?