+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'.
@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:
-# 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,
[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;