[vlc-commits] dvdnav: fix compilation on OS/2
KO Myung-Hun
git at videolan.org
Thu Nov 20 19:49:24 CET 2014
vlc/vlc-2.2 | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu Nov 13 17:07:00 2014 +0900| [a8d46dc70a6f8337f340ea5ffb52881c6382061e] | committer: Jean-Baptiste Kempf
dvdnav: fix compilation on OS/2
-----
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 );
^
-----
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 4bcf8bd7ae0e00e9e1a55fce2e559a5dc465a29f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a8d46dc70a6f8337f340ea5ffb52881c6382061e
---
modules/access/dvdnav.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 1ba59e2..eb65815 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -43,6 +43,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h> /* close() */
#include <vlc_common.h>
#include <vlc_plugin.h>
More information about the vlc-commits
mailing list