Include stdlib.h unconditionally. On some old systems for which
authorJim Meyering <jim@meyering.net>
Tue, 27 Nov 2001 12:55:16 +0000 (12:55 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 27 Nov 2001 12:55:16 +0000 (12:55 +0000)
STDC_HEADERS is 0, it was not included, resulting in a warning
about an integer-to-pointer conversion problem with getenv.

lib/tempname.c

index 382cb13e4714d6201b0299953e38eaa29cf0ddc4..6af0de4022062467c984d749a2f6e5c70b35e051 100644 (file)
 
 #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