From db7dcab7b16610ecdcbc6b670fad6b36703435fa Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 29 Dec 2020 00:04:01 +0100 Subject: [PATCH] asprintf should be available if _GNU_SOURCE is defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As documented in the Linux manpage: https://man7.org/linux/man-pages/man3/asprintf.3.html Change-Id: I855b3310ae9111ddf48c13c26b9eb496c200accb Reviewed-on: https://review.haiku-os.org/c/haiku/+/3554 Reviewed-by: Stephan Aßmus --- headers/compatibility/bsd/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/compatibility/bsd/stdio.h b/headers/compatibility/bsd/stdio.h index d41e740d36..f926978ed3 100644 --- a/headers/compatibility/bsd/stdio.h +++ b/headers/compatibility/bsd/stdio.h @@ -10,7 +10,7 @@ #include -#ifdef _DEFAULT_SOURCE +#if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE) #ifdef __cplusplus