Date: Fri, 28 Dec 2012 09:23:17 -0500 From: Strake <strake888@...il.com> To: musl@...ts.openwall.com Subject: [PATCH] include/stdio.h: declare *asprintf with _BSD_SOURCE *asprintf is indeed declared in BSD stdio.h, so do the same in musl. commit 389e354a13ee040a9a413e61639be6d68ff1bc03 Author: strake <strake888@...il.com> Date: Fri Dec 28 09:20:13 2012 -0500 include/stdio.h: declare *asprintf with _BSD_SOURCE diff --git a/include/stdio.h b/include/stdio.h index 6e8e645..79b2c0f 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -177,9 +177,12 @@ int putw(int, FILE *); char *fgetln(FILE *, size_t *); #endif -#ifdef _GNU_SOURCE +#if defined _GNU_SOURCE || defined _BSD_SOURCE int asprintf(char **, const char *, ...); int vasprintf(char **, const char *, va_list); +#endif + +#ifdef _GNU_SOURCE char *fgets_unlocked(char *, int, FILE *); int fputs_unlocked(const char *, FILE *); #endif
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.