[vlc-devel] [PATCH 1/2] addons: fix compilation error

KO Myung-Hun komh78 at gmail.com
Sat Feb 15 10:00:22 CET 2014


-----
  CC       addons/vorepository.lo
addons/vorepository.c: In function 'Close':
addons/vorepository.c:490:9: error: implicit declaration of function 'unlink' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
-----
---
 modules/misc/addons/vorepository.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 3a21791..b6b9a29 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -487,7 +487,7 @@ static void Close(vlc_object_t *p_this)
     addons_finder_t *p_finder = (addons_finder_t*) p_this;
     if ( p_finder->p_sys->psz_tempfile )
     {
-        unlink( p_finder->p_sys->psz_tempfile );
+        vlc_unlink( p_finder->p_sys->psz_tempfile );
         free( p_finder->p_sys );
     }
 }
-- 
1.7.3.2




More information about the vlc-devel mailing list