]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Dec 2020 22:42:14 +0000 (23:42 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
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.

autogen.sh
gettext-tools/src/format.h
gettext-tools/tests/gettextpo-1-prg.c
gnulib-local/lib/libxml/parser.in.h

index 2fe1f0e92fef8fcfb2fbbdcc34445e3c0df32a4f..3f20d04f50f1847df2df314006a0eb99e07d962b 100755 (executable)
@@ -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
index af670ac15379d6cbd3bbc4fc88bda74aae7c5a13..4cd3186548f86547bb7045f6edab451c3a7beb34 100644 (file)
@@ -19,6 +19,7 @@
 #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.  */
index 3c93c42e0c5f1fa669c6cf89f9d2e1d3f979101a..4c6c2bf1300aefae252044f8a9cded364d31a8af 100644 (file)
@@ -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 <bruno@clisp.org>, 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
 
index a4d6618d16a48cc8fde78753d3e4d7f808a0a6a0..dab770482a8fc205b3046ec008d8a164062a71a9 100644 (file)
@@ -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 <stdarg.h>
+#include <stdlib.h>     /* because Gnulib's <stdlib.h> may '#define free ...' */
 
 #include <libxml/xmlversion.h>
 #include <libxml/tree.h>