summaryrefslogtreecommitdiff
path: root/devel/glib20/files/patch-gio_gunixvolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glib20/files/patch-gio_gunixvolume.c')
-rw-r--r--devel/glib20/files/patch-gio_gunixvolume.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/glib20/files/patch-gio_gunixvolume.c b/devel/glib20/files/patch-gio_gunixvolume.c
new file mode 100644
index 000000000000..377a7d6b5686
--- /dev/null
+++ b/devel/glib20/files/patch-gio_gunixvolume.c
@@ -0,0 +1,17 @@
+--- gio/gunixvolume.c.orig 2007-12-23 15:43:17.000000000 -0500
++++ gio/gunixvolume.c 2007-12-23 15:47:08.000000000 -0500
+@@ -387,9 +387,13 @@ g_unix_volume_eject (GVolume *volume,
+ gpointer user_data)
+ {
+ GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
++#ifdef __FreeBSD__
++ char *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
++ argv[2] = unix_volume->device_path;
++#else
+ char *argv[] = {"eject", NULL, NULL};
+-
+ argv[1] = unix_volume->device_path;
++#endif
+
+ eject_mount_do (volume, cancellable, callback, user_data, argv);
+ }