in clock_getres, check for null pointer before storing result
[musl] / src / stdio / tmpnam.c
index 449eb9b..6c7c253 100644 (file)
@@ -3,12 +3,11 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <string.h>
+#include <stdlib.h>
 #include "syscall.h"
 
 #define MAXTRIES 100
 
-char *__randname(char *);
-
 char *tmpnam(char *buf)
 {
        static char internal[L_tmpnam];