diff options
Diffstat (limited to 'libmpdvdkit2/dvd_reader.c')
-rw-r--r-- | libmpdvdkit2/dvd_reader.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpdvdkit2/dvd_reader.c b/libmpdvdkit2/dvd_reader.c index 4e5db5cc15..0073f6237b 100644 --- a/libmpdvdkit2/dvd_reader.c +++ b/libmpdvdkit2/dvd_reader.c @@ -301,6 +301,11 @@ static char *sun_block2char( const char *path ) 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 @@ static char *bsd_block2char( const char *path ) return new_path; } +#endif /* __FreeBSD__ */ #endif dvd_reader_t *DVDOpen( const char *path ) |