From cd2e4e342e1800f4ff1f63be5142af2babc7e14b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 29 Oct 2002 19:37:28 +0000 Subject: [PATCH] Define _GNU_SOURCE. --- libasprintf/autosprintf.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libasprintf/autosprintf.cc b/libasprintf/autosprintf.cc index b7b064b42..c145d5f33 100644 --- a/libasprintf/autosprintf.cc +++ b/libasprintf/autosprintf.cc @@ -17,6 +17,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* 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 + /* Specification. */ #include "autosprintf.h" -- 2.47.3