summaryrefslogtreecommitdiff
blob: a923ae11a9b478769ec633c5500aab880493e01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/configure.in b/configure.in
index 9660e93..f1d2350 100644
--- a/configure.in
+++ b/configure.in
@@ -48,8 +48,8 @@ fi
 
 dnl This is context->close_fn or context close ?
 AC_TRY_COMPILE([#include <libsmbclient.h>],
-           [SMBCCTX *c; c->close_fn(c,0);],
-        smbctxclosefn=yes, smbctxclosefn=no)
+           [SMBCCTX *c; c->close(c,0);],
+        smbctxclosefn=no, smbctxclosefn=yes)
 if test "$smbctxclosefn" = yes; then
   AC_DEFINE(HAVE_CLOSEFN,, [define if SMBCTXX->close_fn exist.])
   AC_MSG_RESULT([You use SMBCTXX->close_fn (release >= 3.0.20). ])
-- 
2.7.3