From f8c28f094dd7f85f1dc0631435f6b76c19b50242 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 20 Jun 2021 03:47:14 +0200 Subject: [PATCH] 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." --- gettext-runtime/libasprintf/autosprintf.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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" -- 2.47.3