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

KO Myung-Hun komh78 at gmail.com
Wed Nov 5 04:33:23 CET 2014


-----
access/dvdnav.c: In function 'ProbeDVD':
access/dvdnav.c:1469:6: error: implicit declaration of function 'read' [-Werror=implicit-function-declaration]
      || read( fd, iso_dsc, sizeof (iso_dsc) ) < (int)sizeof (iso_dsc)
      ^
access/dvdnav.c:1481:5: error: implicit declaration of function 'close' [-Werror=implicit-function-declaration]
     close( fd );
     ^
-----
---
 modules/access/dvdnav.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 553ef43..2e25bf4 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -39,6 +39,7 @@
 
 #include <assert.h>
 #include <sys/stat.h>
+#include <io.h>
 #include <fcntl.h>
 #include <errno.h>
 
-- 
1.7.3.2




More information about the vlc-devel mailing list