From Adrien Destugues <pulkomandy@xxxxxxxxx>:
Adrien Destugues has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/3554 ;)
Change subject: asprintf should be available if _GNU_SOURCE is defined
......................................................................
asprintf should be available if _GNU_SOURCE is defined
As documented in the Linux manpage:
https://man7.org/linux/man-pages/man3/asprintf.3.html
---
M headers/compatibility/bsd/stdio.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/54/3554/1
diff --git a/headers/compatibility/bsd/stdio.h
b/headers/compatibility/bsd/stdio.h
index d41e740..f926978 100644
--- a/headers/compatibility/bsd/stdio.h
+++ b/headers/compatibility/bsd/stdio.h
@@ -10,7 +10,7 @@
#include <features.h>
-#ifdef _DEFAULT_SOURCE
+#if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE)
#ifdef __cplusplus
--
To view, visit https://review.haiku-os.org/c/haiku/+/3554
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I855b3310ae9111ddf48c13c26b9eb496c200accb
Gerrit-Change-Number: 3554
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange