diff libmpdvdkit2/dvd_reader.c @ 16510:881e136ebf1a

add FreeBSD default cd/dvd devices
author nexus
date Sat, 17 Sep 2005 20:53:20 +0000
parents 483e955893b8
children 0783dd397f74
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_reader.c	Sat Sep 17 19:58:13 2005 +0000
+++ b/libmpdvdkit2/dvd_reader.c	Sat Sep 17 20:53:20 2005 +0000
@@ -301,6 +301,11 @@
    Darwin  /dev/rdisk0,  it needs to be the raw device
    BSD/OS  /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */
 static char *bsd_block2char( const char *path )
+#if defined(__FreeBSD__)
+{
+    return (char *) strdup( path );
+}
+#else
 {
     char *new_path;
 
@@ -315,6 +320,7 @@
 
     return new_path;
 }
+#endif /* __FreeBSD__ */
 #endif
 
 dvd_reader_t *DVDOpen( const char *path )