From: Bruno Haible Date: Sun, 20 Jun 2021 01:47:14 +0000 (+0200) Subject: Update after gnulib changed. X-Git-Tag: v0.22~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8c28f094dd7f85f1dc0631435f6b76c19b50242;p=thirdparty%2Fgettext.git Update after gnulib changed. * gettext-runtime/libasprintf/autosprintf.cc: Include . This is needed because of these new gnulib module dependencies: vasnprintf -> free-posix -> stdlib -> unistd, and the generated unistd.h gets included indirectly by on OpenBSD 6.7 and gives a #error "Please include config.h first." --- diff --git a/gettext-runtime/libasprintf/autosprintf.cc b/gettext-runtime/libasprintf/autosprintf.cc index 176b90cd9..429b8e83d 100644 --- a/gettext-runtime/libasprintf/autosprintf.cc +++ b/gettext-runtime/libasprintf/autosprintf.cc @@ -1,5 +1,5 @@ /* Class autosprintf - formatted output to an ostream. - Copyright (C) 2002, 2013, 2015, 2018 Free Software Foundation, Inc. + Copyright (C) 2002, 2013, 2015, 2018, 2021 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -15,12 +15,7 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ -/* Tell glibc's to provide a prototype for vasprintf(). - This must come before because may include - , and once has been included, it's too late. */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -#endif +#include /* Specification. */ #include "autosprintf.h"