diff options
author | Björn Jacke <bj@sernet.de> | 2009-03-11 08:24:18 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-03-11 12:08:51 -0700 |
commit | e6777e5266d03dedea42d31767f8ee6b907d9b53 (patch) | |
tree | 82b17fe638b712a594e3cd20c4aa55b3ab84084e /source3 | |
parent | 41c5d70c8d7b2af4fab50215f9bfea8e910cf99f (diff) | |
download | samba-e6777e5266d03dedea42d31767f8ee6b907d9b53.tar.gz samba-e6777e5266d03dedea42d31767f8ee6b907d9b53.tar.bz2 samba-e6777e5266d03dedea42d31767f8ee6b907d9b53.zip |
fix configure check by avoiding main(main(...))
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 11 |
1 files changed, 4 insertions, 7 deletions
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) |