changeset 23345:7deeb15acb9b

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 ad67945712ea
children 5049430ac2e2
files lib/tempname.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/tempname.c	Tue Nov 27 12:54:58 2001 +0000
+++ b/lib/tempname.c	Tue Nov 27 12:55:16 2001 +0000
@@ -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