]> git.sesse.net Git - vlc/blobdiff - modules/access/mtp.c
"#if HAVE_FOO" -> "#ifdef HAVE_FOO"
[vlc] / modules / access / mtp.c
index 3a834ba0acc6c05b91ce221cb3f0bcf783ff3fb9..261c943dee1f9efdd6dece214dfafcfcbc4d1511 100644 (file)
@@ -49,7 +49,7 @@
 #include <unistd.h>
 #include <poll.h>
 
-#include <vlc_charset.h>
+#include <vlc_fs.h>
 
 #include "libmtp.h"
 
@@ -187,7 +187,7 @@ static void Close( vlc_object_t * p_this )
     access_sys_t *p_sys = p_access->p_sys;
 
     close ( p_sys->fd );
-    if(        utf8_unlink( p_access->psz_path ) != 0 )
+    if(        vlc_unlink( p_access->psz_path ) != 0 )
         msg_Err( p_access, "Error deleting file %s, %m", p_access->psz_path );
     free( p_sys );
 }
@@ -297,7 +297,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
  *****************************************************************************/
 static int open_file( access_t *p_access, const char *path )
 {
-    int fd = utf8_open( path, O_RDONLY | O_NONBLOCK );
+    int fd = vlc_open( path, O_RDONLY | O_NONBLOCK );
     if( fd == -1 )
     {
         msg_Err( p_access, "cannot open file %s (%m)", path );