From 942fa9f9bad04cc75862b72fabc8f4ff617cdafb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 9 Aug 2004 23:54:10 +0000 Subject: Add getpass.h, so it's properly declared. --- m4/getpass.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'm4/getpass.m4') diff --git a/m4/getpass.m4 b/m4/getpass.m4 index 4449bc5fb6..0c4d8050f2 100644 --- a/m4/getpass.m4 +++ b/m4/getpass.m4 @@ -1,4 +1,4 @@ -# getpass.m4 serial 3 +# getpass.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,6 +10,7 @@ dnl the same distribution terms as the rest of that program. AC_DEFUN([gl_FUNC_GETPASS], [ AC_REPLACE_FUNCS(getpass) + AC_CHECK_DECLS_ONCE(getpass) if test $ac_cv_func_getpass = no; then gl_PREREQ_GETPASS fi @@ -19,6 +20,7 @@ AC_DEFUN([gl_FUNC_GETPASS], # arbitrary length (not just 8 bytes as on HP-UX). AC_DEFUN([gl_FUNC_GETPASS_GNU], [ + AC_CHECK_DECLS_ONCE(getpass) dnl TODO: Detect when GNU getpass() is already found in glibc. AC_LIBOBJ(getpass) gl_PREREQ_GETPASS -- cgit v1.2.1