git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c5d70
)
fix configure check by avoiding main(main(...))
author
Björn Jacke
<bj@sernet.de>
Wed, 11 Mar 2009 07:24:18 +0000
(08:24 +0100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 11 Mar 2009 19:08:51 +0000
(12:08 -0700)
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
source3/configure.in
patch
|
blob
|
history
diff --git
a/source3/configure.in
b/source3/configure.in
index 2af1545d58164f9cd1c11446660dfa2b84c3f240..ab5e81fb3c58eb6492e1c58a4983d18d27fc427f 100644
(file)
--- 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)