summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tempname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tempname.c b/lib/tempname.c
index 382cb13e4..6af0de402 100644
--- a/lib/tempname.c
+++ b/lib/tempname.c
@@ -44,10 +44,11 @@
#if STDC_HEADERS || _LIBC
# include <stddef.h>
-# include <stdlib.h>
# include <string.h>
#endif
+#include <stdlib.h>
+
#if HAVE_FCNTL_H || _LIBC
# include <fcntl.h>
#endif