From 56572fd51c8474c7492be4c8efdb34ed027e19c7 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 6 Oct 2008 20:02:11 +0000 Subject: [PATCH] In KRB5_NEED_PROTO, #undef the name before testing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20826 dc483132-0cff-0310-8789-dd5450dbe970 --- src/aclocal.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index d1e98522e..cd4ac9c1a 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1462,7 +1462,8 @@ AC_DEFUN([KRB5_NEED_PROTO], [ ifelse([$3], ,[if test "x$ac_cv_func_$2" = xyes; then]) AC_CACHE_CHECK([if $2 needs a prototype provided], krb5_cv_func_$2_noproto, AC_TRY_COMPILE([$1], -[struct k5foo {int foo; } xx; +[#undef $2 +struct k5foo {int foo; } xx; extern int $2 (struct k5foo*); $2(&xx); ], -- 2.26.2