include cleanups: remove unused headers and add feature test macros
[musl] / src / temp / mktemp.c
index 67130e1..4ab0df2 100644 (file)
@@ -1,6 +1,6 @@
+#define _GNU_SOURCE
 #include <string.h>
-#include <fcntl.h>
-#include <unistd.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <sys/stat.h>