[vlc-devel] [PATCH] addonsvorepository: fix compilation on OS/2

KO Myung-Hun komh78 at gmail.com
Thu Sep 21 13:51:08 CEST 2017


-----
  CC       misc/addons/vorepository.lo
misc/addons/vorepository.c: In function 'Retrieve':
misc/addons/vorepository.c:440:9: error: implicit declaration of function 'write' [-Werror=implicit-function-declaration]
         if ( write( fd, buffer, i_read ) != i_read )
         ^
cc1: some warnings being treated as errors
-----
---
 modules/misc/addons/vorepository.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 131b3e37cc..b014d49fef 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -28,6 +28,7 @@
 
 #include <assert.h>
 #include <fcntl.h>
+#include <unistd.h>     /* write() */
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
-- 
2.13.3



More information about the vlc-devel mailing list