From: Bruno Haible Date: Wed, 10 Apr 2019 22:46:51 +0000 (+0200) Subject: libtextstyle: Fix build failure on mingw (regression from 2019-03-17). X-Git-Tag: v0.20~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e70e34af8c45b15a44efb3089c8f6ed8a97a6d;p=thirdparty%2Fgettext.git libtextstyle: Fix build failure on mingw (regression from 2019-03-17). * libtextstyle/lib/Makefile.am (config.h): Emit a line that ensures that isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'. --- diff --git a/libtextstyle/lib/Makefile.am b/libtextstyle/lib/Makefile.am index 8388716e5..9f2cb0e17 100644 --- a/libtextstyle/lib/Makefile.am +++ b/libtextstyle/lib/Makefile.am @@ -198,6 +198,9 @@ config.h: $(BUILT_SOURCES) libtextstyle.sym echo '#include "../config.h"'; \ echo; \ echo '#endif /* LIBTEXTSTYLE_CONFIG_H */'; \ + case "@host_os@" in \ + mingw*) echo '#define isatty libtextstyle_isatty' ;; \ + esac; \ } > config.h && \ if test -n "$(NAMESPACING)" && test -n "$(HAVE_GLOBAL_SYMBOL_PIPE)"; then \ { \