changeset 7074:75561a6a4a30

setenv.c comes from gettext / libiconv again.
author Bruno Haible <bruno@clisp.org>
date Sat, 29 Jul 2006 14:38:53 +0000
parents eb23418a908e
children b52ee5340a5f
files config/ChangeLog config/srclist.txt lib/ChangeLog lib/setenv.c
diffstat 4 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-29  Bruno Haible  <bruno@clisp.org>
+
+	* srclist.txt (*setenv.[ch]): Remove rules.
+
 2006-07-22  Bruno Haible  <bruno@clisp.org>
 
 	* srclist.txt: Resync printf-args.c, vasnprintf.c, localcharset.c,
--- a/config/srclist.txt
+++ b/config/srclist.txt
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.130 2006-07-22 17:03:06 haible Exp $
+# $Id: srclist.txt,v 1.131 2006-07-29 14:38:53 haible Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -284,10 +284,6 @@
 #$LIBCSRC/sysdeps/unix/sysv/gethostname.c	lib gpl
 #$LIBCSRC/sysdeps/unix/utime.c			lib gpl
 
-$COREUTILS/lib/setenv.c				lib gpl
-$COREUTILS/lib/setenv.h				lib gpl
-$COREUTILS/lib/unsetenv.c			lib gpl
-
 $LIBTOOL/libltdl/argz.c				lib gpl
 $LIBTOOL/libltdl/argz_.h			lib gpl
 $LIBTOOL/libltdl/m4/argz.m4			m4
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-29  Bruno Haible  <bruno@clisp.org>
+
+	* setenv.c: Undo unintended modification done on 2006-02-27.
+
 2006-07-28  Eric Blake  <ebb9@byu.net>
 
 	* regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
--- a/lib/setenv.c
+++ b/lib/setenv.c
@@ -27,7 +27,9 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
+#if _LIBC || HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 #if !_LIBC
 # include "allocsa.h"