# HG changeset patch # User Bruno Haible # Date 1063205569 0 # Node ID 318c378b409b8f0ff7d006707c14a42afb393b06 # Parent 4452e4c45cc4475eeceae2cab98ba5cb5e17d8bf Assume ANSI C. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -6,6 +6,9 @@ * unicodeio.c: Include unconditionally. * setenv.c: Include and unconditionally. * unsetenv.c: Likewise. + * xreadlink.c: Include unconditionally. + * yesno.c: Include unconditionally. + (rpmatch): Add prototype. 2003-09-10 Jim Meyering diff --git a/lib/xreadlink.c b/lib/xreadlink.c --- a/lib/xreadlink.c +++ b/lib/xreadlink.c @@ -31,9 +31,7 @@ #include #include -#if HAVE_STDLIB_H -# include -#endif +#include #if HAVE_UNISTD_H # include #endif diff --git a/lib/yesno.c b/lib/yesno.c --- a/lib/yesno.c +++ b/lib/yesno.c @@ -1,5 +1,5 @@ /* yesno.c -- read a yes/no response from stdin - Copyright (C) 1990, 1998, 2001 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2001, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,9 +20,7 @@ #endif #include -#if HAVE_STDLIB_H -# include -#endif +#include #include #include "unlocked-io.h" @@ -30,7 +28,7 @@ and return nonzero if that line begins with y or Y, otherwise return 0. */ -int rpmatch (); +extern int rpmatch (char const *response); int yesno () diff --git a/m4/ChangeLog b/m4/ChangeLog --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -6,6 +6,8 @@ * unicodeio.m4 (gl_UNICODEIO): Remove check. * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove and checks. + * xreadlink.m4 (gl_XREADLINK): Remove check. + * yesno.m4 (gl_YESNO): Remove check. 2003-09-09 Paul Eggert diff --git a/m4/xreadlink.m4 b/m4/xreadlink.m4 --- a/m4/xreadlink.m4 +++ b/m4/xreadlink.m4 @@ -1,4 +1,4 @@ -# xreadlink.m4 serial 3 +# xreadlink.m4 serial 4 dnl Copyright (C) 2002, 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 @@ -10,5 +10,5 @@ [ dnl Prerequisites of lib/xreadlink.c. AC_REQUIRE([gt_TYPE_SSIZE_T]) - AC_CHECK_HEADERS_ONCE(stdlib.h unistd.h) + AC_CHECK_HEADERS_ONCE(unistd.h) ]) diff --git a/m4/yesno.m4 b/m4/yesno.m4 --- a/m4/yesno.m4 +++ b/m4/yesno.m4 @@ -1,5 +1,5 @@ -# yesno.m4 serial 1 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# yesno.m4 serial 2 +dnl Copyright (C) 2002-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 @@ -8,6 +8,6 @@ AC_DEFUN([gl_YESNO], [ - dnl Prerequisites of lib/yesno.c. - AC_CHECK_HEADERS_ONCE(stdlib.h) + dnl No prerequisites of lib/yesno.c. + : ])