ape: export mktemp() in <stdlib.h> when _BSD_SOURCE is set

This commit is contained in:
cinap_lenrek 2022-01-03 18:49:40 +00:00
parent b34fc2a9cf
commit 1a90e04c05

View file

@ -49,6 +49,10 @@ extern int wctomb(char *, wchar_t);
extern size_t mbstowcs(wchar_t *, const char *, size_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);
#ifdef _BSD_SOURCE
extern char *mktemp(char *);
#endif
#ifdef _POSIX_C_SOURCE
extern int mkstemp(char *template);
#endif