From e6777e5266d03dedea42d31767f8ee6b907d9b53 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Wed, 11 Mar 2009 08:24:18 +0100 Subject: fix configure check by avoiding main(main(...)) AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail on some compilers. --- source3/configure.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'source3') diff --git a/source3/configure.in b/source3/configure.in index 2af1545d58..ab5e81fb3c 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1177,13 +1177,10 @@ if test x"$LIBUNWIND_PTRACE" != x"" ; then #endif ], [ - int main(int argc, const char ** argv) - { - pid_t me = (pid_t)-1; - ptrace(PTRACE_ATTACH, me, 0, 0); - ptrace(PTRACE_DETACH, me, 0, 0); - return 0; - } + pid_t me = (pid_t)-1; + ptrace(PTRACE_ATTACH, me, 0, 0); + ptrace(PTRACE_DETACH, me, 0, 0); + return 0; ], [ AC_MSG_RESULT(yes) -- cgit