From e66519d94207187a71d274ab70a6647318ed877d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 21 Mar 2005 22:46:34 +1100 Subject: [PATCH] - (dtucker) [configure.ac openbsd-compat/port-aix.h] Prevent redefinitions of setauthdb on AIX 5.3, reported by anders.liljegren at its.uu.se. --- ChangeLog | 4 +++- configure.ac | 4 ++-- openbsd-compat/port-aix.h | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f115e5ecb..ef5602e34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ - (dtucker) [configure.ac] Make configure error out if the user specifies --with-libedit but the required libs can't be found, rather than silently ignoring and continuing. ok tim@ + - (dtucker) [configure.ac openbsd-compat/port-aix.h] Prevent redefinitions + of setauthdb on AIX 5.3, reported by anders.liljegren at its.uu.se. 20050317 - (tim) [configure.ac] Bug 998. Make path for --with-opensc optional. @@ -2380,4 +2382,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3726 2005/03/20 22:58:07 dtucker Exp $ +$Id: ChangeLog,v 1.3727 2005/03/21 11:46:34 dtucker Exp $ diff --git a/configure.ac b/configure.ac index f105e20da..95ace7983 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.256 2005/03/20 22:58:08 dtucker Exp $ +# $Id: configure.ac,v 1.257 2005/03/21 11:46:34 dtucker Exp $ # # Copyright (c) 1999-2004 Damien Miller # @@ -123,7 +123,7 @@ case "$host" in ]) dnl Check for various auth function declarations in headers. AC_CHECK_DECLS([authenticate, loginrestrictions, loginsuccess, - passwdexpired], , , [#include ]) + passwdexpired, setauthdb], , , [#include ]) dnl Check if loginfailed is declared and takes 4 arguments (AIX >= 5.2) AC_CHECK_DECLS(loginfailed, [AC_MSG_CHECKING(if loginfailed takes 4 arguments) diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h index a05ce9703..9e3dce4dd 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h @@ -1,4 +1,4 @@ -/* $Id: port-aix.h,v 1.24 2005/02/16 11:49:31 dtucker Exp $ */ +/* $Id: port-aix.h,v 1.25 2005/03/21 11:46:34 dtucker Exp $ */ /* * @@ -47,7 +47,9 @@ /* These should be in the system headers but are not. */ int usrinfo(int, char *, int); +#if (HAVE_DECL_SETAUTHDB == 0) int setauthdb(const char *, char *); +#endif /* these may or may not be in the headers depending on the version */ #if (HAVE_DECL_AUTHENTICATE == 0) int authenticate(char *, char *, int *, char **);