setenv: Tweaks.
authorBruno Haible <bruno@clisp.org>
Sun, 21 Mar 2010 22:22:33 +0000 (23:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Mar 2010 22:24:17 +0000 (23:24 +0100)
ChangeLog
doc/posix-functions/setenv.texi
m4/setenv.m4

index 94a1f45..bed7c1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-03-21  Bruno Haible  <bruno@clisp.org>
 
+       setenv: Tweaks.
+       * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
+       the test program.
+       * doc/posix-functions/setenv.texi: Update platforms list.
+
+2010-03-21  Bruno Haible  <bruno@clisp.org>
+
        New module 'unlockpt'.
        * lib/unlockpt.c: New file, from glibc with modifications.
        * m4/unlockpt.m4: New file.
index 279ae14..55ff034 100644 (file)
@@ -14,7 +14,7 @@ AIX 4.3.2, HP-UX 11, IRIX 6.5, Solaris 9, mingw, BeOS.
 @item
 On some platforms, this function does not fail with @samp{EINVAL} when
 passed an empty string or a string containing @samp{=}:
-FreeBSD 6.0, NetBSD 1.6, OpenBSD 3.8, Cygwin 1.5.x.
+MacOS X 10.5, FreeBSD 6.0, NetBSD 1.6, OpenBSD 3.8, Cygwin 1.5.x.
 @item
 On some platforms, this function removes a leading @samp{=} from the
 value argument:
index ae4dd86..58f6d13 100644 (file)
@@ -1,4 +1,4 @@
-# setenv.m4 serial 15
+# setenv.m4 serial 16
 dnl Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -25,6 +25,7 @@ AC_DEFUN([gl_FUNC_SETENV_SEPARATE],
       [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
        #include <stdlib.h>
        #include <errno.h>
+       #include <string.h>
       ]], [[
        if (setenv ("", "", 0) != -1) return 1;
        if (errno != EINVAL) return 2;