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 <stdlib.h>.
* gettext-tools/src/format.h: Likewise.
* gettext-tools/tests/gettextpo-1-prg.c: Undefine free.
findprog
fnmatch
fopen
+ free-posix
fstrcmp
full-write
fwriteerror
error-progname
filename
fopen
+ free-posix
fstrcmp
fwriteerror
gcd
#define _FORMAT_H
#include <stdbool.h>
+#include <stdlib.h> /* because Gnulib's <stdlib.h> may '#define free ...' */
#include "pos.h" /* Get lex_pos_ty. */
#include "message.h" /* Get NFORMATS. */
/* 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 <bruno@clisp.org>, 2010.
This program is free software: you can redistribute it and/or modify
/* Use the system functions, not the gnulib overrides in this file. */
#undef fflush
#undef fprintf
+#undef free
#undef printf
#undef strdup
/* 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.
#define __XML_PARSER_H__
#include <stdarg.h>
+#include <stdlib.h> /* because Gnulib's <stdlib.h> may '#define free ...' */
#include <libxml/xmlversion.h>
#include <libxml/tree.h>