From 81f53c08b12ba4150e02a2dcb647d8176570fca1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 8 Sep 2018 20:05:37 +0300 Subject: Fix the MinGW build. --- pc/ChangeLog | 5 +++++ pc/config.h | 4 ++++ pc/config.sed | 6 ++++++ 3 files changed, 15 insertions(+) (limited to 'pc') diff --git a/pc/ChangeLog b/pc/ChangeLog index 834aede5..f28257ea 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-08 Eli Zaretskii + + * config.sed (_GNU_SOURCE) [__MINGW32__]: Define to 1. + * config.h: Regenerate. + 2018-08-04 Eli Zaretskii * gawkmisc.pc (nl_langinfo) [__MINGW32__]: New function diff --git a/pc/config.h b/pc/config.h index 64ad9f97..77972517 100644 --- a/pc/config.h +++ b/pc/config.h @@ -510,6 +510,10 @@ /* force use of our version of strftime */ #undef USE_INCLUDED_STRFTIME +/* This is required to compile Gnulib regex code. */ +#ifdef __MINGW32__ +#define _GNU_SOURCE 1 +#endif /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE diff --git a/pc/config.sed b/pc/config.sed index 75ad0890..840feab6 100644 --- a/pc/config.sed +++ b/pc/config.sed @@ -299,6 +299,12 @@ s/^#undef TIME_WITH_SYS_TIME *$/#define TIME_WITH_SYS_TIME 1/ #define inline __inline__\ #endif +/^\/\* Enable extensions on AIX 3, Interix. \*\//i\ +/* This is required to compile Gnulib regex code. */\ +#ifdef __MINGW32__\ +#define _GNU_SOURCE 1\ +#endif + s|^#undef PACKAGE_URL *$|#define PACKAGE_URL "http://www.gnu.org/software/gawk/"| $a\ -- cgit v1.2.3