shithub: riscv

Download patch

ref: 1a90e04c056c02aee0d14eed46312e1289efbf73
parent: b34fc2a9cfdfec3abe8d1e1831a0ebf9dc50ff07
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 3 13:49:40 EST 2022

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

--- a/sys/include/ape/stdlib.h
+++ b/sys/include/ape/stdlib.h
@@ -49,6 +49,10 @@
 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