changeset 3654:60143dd95a31

Include stdlib.h unconditionally. On some old systems for which STDC_HEADERS is 0, it was not included, resulting in a warning about an integer-to-pointer conversion problem with getenv.
author Jim Meyering <jim@meyering.net>
date Tue, 27 Nov 2001 12:55:16 +0000
parents 574daaf59139
children 6c927f9499db
files lib/tempname.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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