build problems with cvs version of vlc

Steven M. Schultz sms at 2BSD.COM
Wed Apr 3 21:12:08 CEST 2002


Hi -

> 	are present, and on a non-linux system the "#include <linux/cdrom.h>"
> 	is obviously not going to work:
> 
> #if defined(HAVE_BSD_DVD_STRUCT) || \
>  defined(DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H) || \
>   defined(DVD_STRUCT_IN_DVD_H)
>   #   include <dvd.h>
>   #elif defined ( SYS_DARWIN )
>   #   include <CoreFoundation/CFBase.h>
>   #   include <IOKit/IOKitLib.h>
>   #   include <IOKit/storage/IOCDTypes.h>
>   #   include <IOKit/storage/IOCDMedia.h>
>   #   include <IOKit/storage/IOCDMediaBSDClient.h>
>   #else
>   #   include <linux/cdrom.h>
> #endif
> 
> 
> 	Hints, ideas - I suspect it's autoconf magic that needs to be
> 	added...

	This is simpler (it uses the 'SYS' type that is set up - the same
	way as SYS_DARWIN).  What do you think?

--- cdrom_tools.c.dist	Tue Feb 19 21:50:00 2002
+++ cdrom_tools.c	Wed Apr  3 11:09:19 2002
@@ -41,9 +41,7 @@
 
 #include <sys/ioctl.h>
 
-#if defined(HAVE_BSD_DVD_STRUCT) || \
- defined(DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H) || \
- defined(DVD_STRUCT_IN_DVD_H)
+#if defined( SYS_BSDI )
 #   include <dvd.h>
 #elif defined ( SYS_DARWIN )
 #   include <CoreFoundation/CFBase.h>

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list