Commit e8ca5bab authored by Gildas Bazin's avatar Gildas Bazin

* configure.ac, modules/access/smb.c: compilation fix for new libsmbclient...

* configure.ac, modules/access/smb.c: compilation fix for new libsmbclient versions. Patch by Diego Petteno (flameeyes at gentoo dot org).
parent 62ca4114
......@@ -1553,6 +1553,9 @@ if test "${enable_smb}" != "no"; then
[ if test -n "${enable_smb}"; then
AC_MSG_ERROR([cannot find libsmbclient headers])
fi ])
AC_CHECK_MEMBER([struct _SMBCCTX.close_fn],
AC_DEFINE([HAVE__SMBCCTX_CLOSE_FN], [1], [Define if samba has _SMBCCTX.close_fn]),,
[#include <libsmbclient.h>])
fi
dnl
......
......@@ -301,7 +301,11 @@ static void Close( vlc_object_t *p_this )
access_sys_t *p_sys = p_access->p_sys;
#ifdef USE_CTX
# ifndef HAVE__SMBCCTX_CLOSE_FN
p_sys->p_smb->close( p_sys->p_smb, p_sys->p_file );
# else
p_sys->p_smb->close_fn( p_sys->p_smb, p_sys->p_file );
# endif
smbc_free_context( p_sys->p_smb, 1 );
#else
smbc_close( p_sys->i_smb );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment