From: Ken Raeburn Date: Mon, 6 Oct 2008 20:02:11 +0000 (+0000) Subject: In KRB5_NEED_PROTO, #undef the name before testing X-Git-Tag: krb5-1.7-alpha1~347 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56572fd51c8474c7492be4c8efdb34ed027e19c7;p=krb5.git In KRB5_NEED_PROTO, #undef the name before testing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20826 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); ],