$NetBSD: patch-ab,v 1.5 2006/06/30 02:54:11 joerg Exp $ --- nautilus-burn-drive.c.orig 2006-03-22 09:08:38.000000000 -0800 +++ nautilus-burn-drive.c @@ -44,7 +44,7 @@ #include #endif /* __linux__ */ -#ifdef __FreeBSD__ +#if defined (__FreeBSD__) || defined(__DragonFly__) #include #include #include @@ -163,7 +163,7 @@ fill_write_speeds (NautilusBurnDrive *dr } } -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) #define get_ioctl_handle_fd(x) (((struct cam_device *)x)->fd) @@ -687,7 +687,6 @@ get_disc_type (const char *dev_path) struct cd_toc_entry entry; int i; #endif - int type; #ifndef CDROM_DATA_TRACK #define CDROM_DATA_TRACK 4 #endif @@ -2673,7 +2672,7 @@ linux_scan (gboolean recorder_only) return drives_list; } -#elif defined (__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) static GList * freebsd_scan (gboolean recorder_only) @@ -2918,7 +2917,7 @@ nautilus_burn_drive_get_list (gboolean r if (drives == NULL) { #if defined (__linux__) drives = linux_scan (recorder_only); -#elif defined (__FreeBSD__) +#elif defined (__FreeBSD__) || defined(__DragonFly__) drives = freebsd_scan (recorder_only); #else drives = cdrecord_scan (recorder_only);