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 382cb13..6af0de4 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