diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-27 12:55:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-27 12:55:16 +0000 |
commit | 65d5eb615dd9066d46ba6601ca05050ee8caad02 (patch) | |
tree | 8933d2533ed3369642a2d4aac0691ea47a26130b /lib/tempname.c | |
parent | 0bb8253d33125a7bf91255caa85e189902b56102 (diff) | |
download | coreutils-65d5eb615dd9066d46ba6601ca05050ee8caad02.tar.xz |
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.
Diffstat (limited to 'lib/tempname.c')
-rw-r--r-- | lib/tempname.c | 3 |
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 |