Commit 5f8e55d0 authored by Rémi Duraffort's avatar Rémi Duraffort

smb: use utf8_open (fix #2922)

(cherry picked from commit 22507d75 and
e83b4259)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 1ff90031
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#endif #endif
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_charset.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_access.h> #include <vlc_access.h>
...@@ -42,7 +43,7 @@ ...@@ -42,7 +43,7 @@
# include <sys/stat.h> # include <sys/stat.h>
# endif # endif
# include <io.h> # include <io.h>
# define smbc_open(a,b,c) open(a,b,c) # define smbc_open(a,b,c) utf8_open(a,b,c)
# define stat _stati64 # define stat _stati64
# define smbc_fstat(a,b) _fstati64(a,b) # define smbc_fstat(a,b) _fstati64(a,b)
# define smbc_read read # define smbc_read read
......
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