gentoo/dev-perl/Filesys-SmbClient/files/Filesys-SmbClient-3.200.0-close_fn.patch
Andreas K. Hüttel 7e57da211c
dev-perl/Filesys-SmbClient: Make it build with samba-4, bug 581338
Thanks to Dennis Lichtenthäler

Package-Manager: Portage-2.3.3, Repoman-2.3.1
2017-01-04 10:59:00 +01:00

19 lines
589 B
Diff

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