2013-09-26 17:14:40 +02:00

32 lines
937 B
Plaintext

$NetBSD: patch-ab,v 1.7 2011/05/15 09:59:18 hans Exp $
--- dvd.c.orig 2009-06-08 22:15:34.000000000 +0200
+++ dvd.c 2011-05-15 12:46:00.612223980 +0200
@@ -23,7 +23,7 @@
*/
int get_dvd_name(const char *device, char *title)
{
-
+ int i = 0;
#if defined( __sun )
/* title is actually in the device name */
char *new_title;
@@ -31,7 +31,7 @@ int get_dvd_name(const char *device, cha
strncpy( title, new_title, sizeof(title)-1 );
#else
int filehandle = 0;
- int i = 0, last = 0;
+ int last = 0;
int bytes_read;
char tmp_buf[2048];
@@ -173,7 +173,7 @@ int get_device( char *path, char *device
if( !strcmp( path, buf.f_mntonname ) )
{
mounted = TRUE;
-#if defined(__FreeBSD__) && (__FreeBSD_Version > 500000)
+#if defined(__DragonFly__) || (defined(__FreeBSD__) && (__FreeBSD_Version > 500000))
strcpy(device, buf.f_mntfromname);
#else
strcpy(device, "/dev/r");