* unicodeio.c: Include <string.h> unconditionally.
* setenv.c: Include <stdlib.h> and <string.h> unconditionally.
* unsetenv.c: Likewise.
+ * xreadlink.c: Include <stdlib.h> unconditionally.
+ * yesno.c: Include <stdlib.h> unconditionally.
+ (rpmatch): Add prototype.
2003-09-10 Jim Meyering <jim@meyering.net>
#include <limits.h>
#include <sys/types.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* 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
#endif
#include <ctype.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include <stdio.h>
#include "unlocked-io.h"
and return nonzero if that line begins with y or Y,
otherwise return 0. */
-int rpmatch ();
+extern int rpmatch (char const *response);
int
yesno ()
* unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
* setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
<stdlib.h> and <string.h> checks.
+ * xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
+ * yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
2003-09-09 Paul Eggert <eggert@twinsun.com>
-# 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
[
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)
])
-# 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
AC_DEFUN([gl_YESNO],
[
- dnl Prerequisites of lib/yesno.c.
- AC_CHECK_HEADERS_ONCE(stdlib.h)
+ dnl No prerequisites of lib/yesno.c.
+ :
])