projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff0c2a
)
Include stdlib.h unconditionally. On some old systems for which
author
Jim Meyering
<jim@meyering.net>
Tue, 27 Nov 2001 12:55:16 +0000
(12:55 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lib/tempname.c
b/lib/tempname.c
index 382cb13e4714d6201b0299953e38eaa29cf0ddc4..6af0de4022062467c984d749a2f6e5c70b35e051 100644
(file)
--- 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