From: Bruno Haible Date: Wed, 8 Jul 2020 01:47:08 +0000 (+0200) Subject: Fix build error on mingw (regression from 2020-07-05). X-Git-Tag: v0.21~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba64451166ca6e6ff1bb0b7c7e6ec8045baa07ab;p=thirdparty%2Fgettext.git Fix build error on mingw (regression from 2020-07-05). * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add fdopen. --- diff --git a/.gitignore b/.gitignore index 84cfa688a..1de922cea 100644 --- a/.gitignore +++ b/.gitignore @@ -105,6 +105,7 @@ /gettext-tools/libgettextpo/fcntl.in.h /gettext-tools/libgettextpo/fd-hook.c /gettext-tools/libgettextpo/fd-hook.h +/gettext-tools/libgettextpo/fdopen.c /gettext-tools/libgettextpo/filename.h /gettext-tools/libgettextpo/float+.h /gettext-tools/libgettextpo/float.c diff --git a/autogen.sh b/autogen.sh index c7225d941..e09ee845b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -338,12 +338,18 @@ if ! $skip_gnulib; then xstriconv xvasprintf ' + # Module 'fdopen' is enabled in gettext-tools/config.status, because + # it occurs as dependency of some module ('supersede') in + # GNULIB_MODULES_TOOLS_FOR_SRC. Therefore on mingw, libgettextpo/stdio.h + # contains '#define fdopen rpl_fdopen'. Therefore we need to include + # fdopen.lo in libgettextpo.la. # Module 'realloc-posix' is enabled in gettext-tools/config.status, because # it occurs as dependency of some module ('read-file') in # GNULIB_MODULES_TOOLS_FOR_SRC. Therefore on mingw, libgettextpo/stdlib.h # contains '#define realloc rpl_realloc'. Therefore we need to include # realloc.lo in libgettextpo.la. GNULIB_MODULES_LIBGETTEXTPO_OTHER=' + fdopen realloc-posix ' $GNULIB_TOOL --dir=gettext-tools --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --macro-prefix=gtpo --makefile-name=Makefile.gnulib --libtool --local-dir=gnulib-local --local-symlink \