[vlc-devel] [PATCH 2/2] dvdnav: fix compilation on OS/2
Rémi Denis-Courmont
remi at remlab.net
Sat Nov 8 20:17:49 CET 2014
Le mercredi 05 novembre 2014, 12:33:23 KO Myung-Hun a écrit :
> -----
> 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>
That should be <unistd.h> I think.
> #include <fcntl.h>
> #include <errno.h>
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list