expose [v]asprintf under _BSD_SOURCE

reported/requested by Strake; simplified from the provided patch
This commit is contained in:
Rich Felker 2012-12-28 15:39:33 -05:00
parent 761ebe065c
commit d18a410bbf
1 changed files with 2 additions and 2 deletions

View File

@ -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