summaryrefslogtreecommitdiff
path: root/devel/gvfs/files/patch-monitor_gphoto2_ggphoto2volume.c
blob: 6686b28aebb7273ed50e961d821f86914ecb11a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- monitor/gphoto2/ggphoto2volume.c.orig	2008-07-22 09:29:19.000000000 -0400
+++ monitor/gphoto2/ggphoto2volume.c	2008-07-22 23:22:30.000000000 -0400
@@ -277,7 +277,11 @@ g_gphoto2_volume_new (GVolumeMonitor   *
     return NULL;
 
   /* TODO: other OS'es? Will address this with DK aka HAL 2.0 */
+#ifdef __FreeBSD__
+  device_path = hal_device_get_property_string (drive_device, "freebsd.device_file");
+#else
   device_path = hal_device_get_property_string (drive_device, "linux.device_file");
+#endif
   if (strlen (device_path) == 0)
     device_path = NULL;