From 1a90e04c056c02aee0d14eed46312e1289efbf73 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 3 Jan 2022 18:49:40 +0000 Subject: [PATCH] ape: export mktemp() in when _BSD_SOURCE is set --- sys/include/ape/stdlib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/ape/stdlib.h b/sys/include/ape/stdlib.h index 896439723..4f531a232 100644 --- a/sys/include/ape/stdlib.h +++ b/sys/include/ape/stdlib.h @@ -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