From d18a410bbf259e5fee9fb8b4b0335ec64991d5db Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 28 Dec 2012 15:39:33 -0500 Subject: expose [v]asprintf under _BSD_SOURCE reported/requested by Strake; simplified from the provided patch --- include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/stdio.h b/include/stdio.h index 6e8e6454..645e6221 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -175,11 +175,11 @@ int fileno_unlocked(FILE *); int getw(FILE *); int putw(int, FILE *); char *fgetln(FILE *, size_t *); +int asprintf(char **, const char *, ...); +int vasprintf(char **, const char *, va_list); #endif #ifdef _GNU_SOURCE -int asprintf(char **, const char *, ...); -int vasprintf(char **, const char *, va_list); char *fgets_unlocked(char *, int, FILE *); int fputs_unlocked(const char *, FILE *); #endif -- cgit v1.2.1