[vlc-devel] [PATCH 2/3] dvdnav: fix compilation on OS/2
KO Myung-Hun
komh78 at gmail.com
Fri Nov 14 02:51:13 CET 2014
Vittorio Giovara wrote:
> On Thu, Nov 13, 2014 at 9:07 AM, KO Myung-Hun <komh78 at gmail.com> wrote:
>> -----
>> 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 file changed, 1 insertion(+)
>>
>> diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
>> index 553ef43..ad1240a 100644
>> --- a/modules/access/dvdnav.c
>> +++ b/modules/access/dvdnav.c
>> @@ -41,6 +41,7 @@
>> #include <sys/stat.h>
>> #include <fcntl.h>
>> #include <errno.h>
>> +#include <unistd.h> /* close() */
>
> comments about which functions are included get outdated quickly, so
> I'd avoid doing that
>
Ok.
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-dvdnav-fix-compilation-on-OS-2.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141114/17dec2c4/attachment.ksh>
More information about the vlc-devel
mailing list