From d26ede5aeceb8fc7505533b2b88452fc8ef6f2a9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 21 Mar 2010 23:22:33 +0100 Subject: [PATCH] setenv: Tweaks. --- ChangeLog | 7 +++++++ doc/posix-functions/setenv.texi | 2 +- m4/setenv.m4 | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94a1f45ee..bed7c1f32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-03-21 Bruno Haible + 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 + New module 'unlockpt'. * lib/unlockpt.c: New file, from glibc with modifications. * m4/unlockpt.m4: New file. diff --git a/doc/posix-functions/setenv.texi b/doc/posix-functions/setenv.texi index 279ae14a5..55ff03406 100644 --- a/doc/posix-functions/setenv.texi +++ b/doc/posix-functions/setenv.texi @@ -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: diff --git a/m4/setenv.m4 b/m4/setenv.m4 index ae4dd863f..58f6d1382 100644 --- a/m4/setenv.m4 +++ b/m4/setenv.m4 @@ -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 #include + #include ]], [[ if (setenv ("", "", 0) != -1) return 1; if (errno != EINVAL) return 2; -- 2.11.0