[MPlayer-cvslog] r37570 - trunk/stream/stream_vcd.c
ib
subversion at mplayerhq.hu
Tue Dec 29 19:19:34 CET 2015
Author: ib
Date: Tue Dec 29 19:19:34 2015
New Revision: 37570
Log:
Fix build regression on FreeBSD.
When building with libcdio, CDRIOCSETBLOCKSIZE is an undefined symbol
and compilation breaks.
The ioctl call in question will be performed by libcdio itself, so it
can be omitted on FreeBSD with libcdio.
Reported by Thomas Zander, thomas.e.zander googlemail com.
Modified:
trunk/stream/stream_vcd.c
Modified: trunk/stream/stream_vcd.c
==============================================================================
--- trunk/stream/stream_vcd.c Wed Dec 23 18:29:47 2015 (r37569)
+++ trunk/stream/stream_vcd.c Tue Dec 29 19:19:34 2015 (r37570)
@@ -137,7 +137,7 @@ static int open_s(stream_t *stream,int m
struct stream_priv_s* p = opts;
int ret,ret2,f,sect,tmp;
mp_vcd_priv_t* vcd;
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(CONFIG_LIBCDIO)
int bsize = VCD_SECTOR_SIZE;
#endif
#if defined(__MINGW32__) || defined(__CYGWIN__)
@@ -248,7 +248,7 @@ static int open_s(stream_t *stream,int m
mp_msg(MSGT_OPEN,MSGL_V,"VCD start byte position: 0x%X end: 0x%X\n",ret,ret2);
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(CONFIG_LIBCDIO)
if (ioctl (f, CDRIOCSETBLOCKSIZE, &bsize) == -1) {
mp_msg(MSGT_OPEN,MSGL_WARN,"Error in CDRIOCSETBLOCKSIZE");
}
More information about the MPlayer-cvslog
mailing list