diff --git a/headers/compatibility/bsd/stdlib.h b/headers/compatibility/bsd/stdlib.h index d65871f812..6b9e0b726d 100644 --- a/headers/compatibility/bsd/stdlib.h +++ b/headers/compatibility/bsd/stdlib.h @@ -20,6 +20,8 @@ int daemon(int noChangeDir, int noClose); const char *getprogname(void); void setprogname(const char *programName); +int mkstemps(char *templat, int slen); + #ifdef __cplusplus } #endif diff --git a/src/system/libroot/posix/stdlib/mktemp.c b/src/system/libroot/posix/stdlib/mktemp.c index 513e767ce6..5923acee43 100644 --- a/src/system/libroot/posix/stdlib/mktemp.c +++ b/src/system/libroot/posix/stdlib/mktemp.c @@ -51,14 +51,12 @@ static int _gettemp(char *, int *, int, int); static const char padchar[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; -#if 0 int mkstemps(char *path, int slen) { int fd; return _gettemp(path, &fd, 0, slen) ? fd : -1; } -#endif int