$NetBSD: patch-ab,v 1.5 2006/05/19 08:32:04 joerg Exp $ --- dvd.c.orig 2006-05-19 08:29:37.000000000 +0000 +++ dvd.c @@ -48,7 +48,6 @@ #include -extern int errno; /*for solaris, if we need to include some cdrom related stuff #include @@ -199,7 +198,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");