ensure standard functions mk[sd]temp don't depend on removed function mktemp
[musl] / src / temp / mktemp.c
index 8638e08..1078b9d 100644 (file)
@@ -6,7 +6,7 @@
 #include <errno.h>
 #include "libc.h"
 
-char *mktemp(char *template)
+char *__mktemp(char *template)
 {
        static int lock;
        static int index;
@@ -27,3 +27,5 @@ char *mktemp(char *template)
        UNLOCK(&lock);
        return NULL;    
 }
+
+weak_alias(__mktemp, mktemp);