summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-13 21:54:35 +0000
committerJim Meyering <jim@meyering.net>2003-09-13 21:54:35 +0000
commit2be39af412edc53d4ef09097949550697c270173 (patch)
treebdcb73896e52c79f21a0ce1916424b663f55cc53
parent07f3bfba3a4b0db25675e3c5d354d9a40e2c12aa (diff)
downloadcoreutils-2be39af412edc53d4ef09097949550697c270173.tar.xz
Update from gnulib.
-rw-r--r--lib/setenv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/setenv.c b/lib/setenv.c
index 04073caa0..f185e04db 100644
--- a/lib/setenv.c
+++ b/lib/setenv.c
@@ -28,12 +28,8 @@ extern int errno;
# define __set_errno(ev) ((errno) = (ev))
#endif
-#if _LIBC || HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if _LIBC || HAVE_STRING_H
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
#if _LIBC || HAVE_UNISTD_H
# include <unistd.h>
#endif
@@ -284,7 +280,7 @@ setenv (const char *name, const char *value, int replace)
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
for Fortran 77) requires this function. */
int
-clearenv ()
+clearenv (void)
{
LOCK;