From: Bruno Haible Date: Sun, 20 Dec 2020 22:42:14 +0000 (+0100) Subject: Update after gnulib changed. X-Git-Tag: v0.21.1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eedf8a84824a1ad5eb5acdac9a7241d7a0525b2;p=thirdparty%2Fgettext.git Update after gnulib changed. This fixes a compilation error e.g. on FreeBSD and AIX. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add 'free-posix'. * gnulib-local/lib/libxml/parser.in.h: Include . * gettext-tools/src/format.h: Likewise. * gettext-tools/tests/gettextpo-1-prg.c: Undefine free. --- diff --git a/autogen.sh b/autogen.sh index 2fe1f0e92..3f20d04f5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -145,6 +145,7 @@ if ! $skip_gnulib; then findprog fnmatch fopen + free-posix fstrcmp full-write fwriteerror @@ -309,6 +310,7 @@ if ! $skip_gnulib; then error-progname filename fopen + free-posix fstrcmp fwriteerror gcd diff --git a/gettext-tools/src/format.h b/gettext-tools/src/format.h index af670ac15..4cd318654 100644 --- a/gettext-tools/src/format.h +++ b/gettext-tools/src/format.h @@ -19,6 +19,7 @@ #define _FORMAT_H #include +#include /* because Gnulib's may '#define free ...' */ #include "pos.h" /* Get lex_pos_ty. */ #include "message.h" /* Get NFORMATS. */ diff --git a/gettext-tools/tests/gettextpo-1-prg.c b/gettext-tools/tests/gettextpo-1-prg.c index 3c93c42e0..4c6c2bf13 100644 --- a/gettext-tools/tests/gettextpo-1-prg.c +++ b/gettext-tools/tests/gettextpo-1-prg.c @@ -1,5 +1,5 @@ /* Test of public API for GNU gettext PO files. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010, 2020 Free Software Foundation, Inc. Written by Bruno Haible , 2010. This program is free software: you can redistribute it and/or modify @@ -28,6 +28,7 @@ /* Use the system functions, not the gnulib overrides in this file. */ #undef fflush #undef fprintf +#undef free #undef printf #undef strdup diff --git a/gnulib-local/lib/libxml/parser.in.h b/gnulib-local/lib/libxml/parser.in.h index a4d6618d1..dab770482 100644 --- a/gnulib-local/lib/libxml/parser.in.h +++ b/gnulib-local/lib/libxml/parser.in.h @@ -1,5 +1,5 @@ /* libxml2 - Library for parsing XML documents - * Copyright (C) 2006-2019 Free Software Foundation, Inc. + * Copyright (C) 2006-2020 Free Software Foundation, Inc. * * This file is not part of the GNU gettext program, but is used with * GNU gettext. @@ -40,6 +40,7 @@ #define __XML_PARSER_H__ #include +#include /* because Gnulib's may '#define free ...' */ #include #include