From c84dfe7ddd6f3ba14ec9f4b1f2c577365175128b Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375gnu@gmail.com> Date: Wed, 11 Mar 2020 19:07:39 +0300 Subject: [gettext] fix build with mingw-w64 (#10077) --- ports/gettext/0003-Fix-win-unicode-paths.patch | 2 +- ports/gettext/CONTROL | 2 +- ports/gettext/config.win32.h | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ports/gettext/0003-Fix-win-unicode-paths.patch b/ports/gettext/0003-Fix-win-unicode-paths.patch index f86c52c86..540ac3d92 100644 --- a/ports/gettext/0003-Fix-win-unicode-paths.patch +++ b/ports/gettext/0003-Fix-win-unicode-paths.patch @@ -16,7 +16,7 @@ index 63351523..c078de3f 100644 +# endif +# undef NOMINMAX +# define NOMINMAX -+# include // For: MultiByteToWideChar ++# include // For: MultiByteToWideChar +# include +# include + diff --git a/ports/gettext/CONTROL b/ports/gettext/CONTROL index 5cfa7b0d7..0918e1943 100644 --- a/ports/gettext/CONTROL +++ b/ports/gettext/CONTROL @@ -1,5 +1,5 @@ Source: gettext -Version: 0.19-14 +Version: 0.19-15 Homepage: https://www.gnu.org/software/gettext/ Description: The GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages. Provides libintl. Build-Depends: libiconv diff --git a/ports/gettext/config.win32.h b/ports/gettext/config.win32.h index b68467cf3..e8507894d 100644 --- a/ports/gettext/config.win32.h +++ b/ports/gettext/config.win32.h @@ -275,7 +275,9 @@ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `mempcpy' function. */ -/* #undef HAVE_MEMPCPY */ +#ifdef __GNUC__ +#define HAVE_MEMPCPY 1 +#endif /* Define to 1 if you have a working `mmap' system call. */ /* #undef HAVE_MMAP */ -- cgit v1.2.3