# HG changeset patch # User Bruno Haible # Date 1063203392 0 # Node ID 4452e4c45cc4475eeceae2cab98ba5cb5e17d8bf # Parent 90abbdf08583f46b2f414745b9fb598eb92ba867 Assume ANSI C , . diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,12 @@ +2003-09-10 Bruno Haible + + * strcspn.c: Include unconditionally. + * strpbrk.c: Include unconditionally. + * strstr.c: Include unconditionally. + * unicodeio.c: Include unconditionally. + * setenv.c: Include and unconditionally. + * unsetenv.c: Likewise. + 2003-09-10 Jim Meyering * error.c: Correct indentation of cpp directives. diff --git a/lib/setenv.c b/lib/setenv.c --- a/lib/setenv.c +++ b/lib/setenv.c @@ -28,12 +28,8 @@ # define __set_errno(ev) ((errno) = (ev)) #endif -#if _LIBC || HAVE_STDLIB_H -# include -#endif -#if _LIBC || HAVE_STRING_H -# include -#endif +#include +#include #if _LIBC || HAVE_UNISTD_H # include #endif diff --git a/lib/unsetenv.c b/lib/unsetenv.c --- a/lib/unsetenv.c +++ b/lib/unsetenv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2002 Free Software Foundation, Inc. +/* Copyright (C) 1992,1995-1999,2000-2003 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -27,12 +27,8 @@ # define __set_errno(ev) ((errno) = (ev)) #endif -#if _LIBC || HAVE_STDLIB_H -# include -#endif -#if _LIBC || HAVE_STRING_H -# include -#endif +#include +#include #if _LIBC || HAVE_UNISTD_H # include #endif diff --git a/m4/ChangeLog b/m4/ChangeLog --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,12 @@ +2003-09-10 Bruno Haible + + * strcspn.m4 (gl_PREREQ_STRCSPN): Remove check. + * strpbrk.m4 (gl_PREREQ_STRPBRK): Remove check. + * strstr.m4 (gl_PREREQ_STRSTR): Remove check. + * unicodeio.m4 (gl_UNICODEIO): Remove check. + * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove + and checks. + 2003-09-09 Paul Eggert * getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h. diff --git a/m4/setenv.m4 b/m4/setenv.m4 --- a/m4/setenv.m4 +++ b/m4/setenv.m4 @@ -1,5 +1,5 @@ -# setenv.m4 serial 3 -dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. +# setenv.m4 serial 4 +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -40,7 +40,7 @@ AC_DEFUN([gl_PREREQ_SETENV], [ AC_REQUIRE([AC_FUNC_ALLOCA]) - AC_CHECK_HEADERS_ONCE(stdlib.h string.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CHECK_HEADERS(search.h) AC_CHECK_FUNCS(tsearch) gt_CHECK_VAR_DECL([#include ], errno) @@ -50,7 +50,7 @@ # Prerequisites of lib/unsetenv.c. AC_DEFUN([gl_PREREQ_UNSETENV], [ - AC_CHECK_HEADERS_ONCE(stdlib.h string.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) gt_CHECK_VAR_DECL([#include ], errno) gt_CHECK_VAR_DECL([#include ], environ) ])