aboutsummaryrefslogtreecommitdiffstats
path: root/devel/glib20/files/patch-gio_gunixvolume.c
blob: 21316e02f55fd5f14902ec3f20b3c1cc804a0408 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- gio/gunixvolume.c.orig  2014-03-20 04:50:45.000000000 +0100
+++ gio/gunixvolume.c   2014-03-24 20:44:40.000000000 +0100
@@ -356,9 +356,14 @@
                      gpointer             user_data)
 {
   GUnixVolume *unix_volume = G_UNIX_VOLUME (volume);
+#ifdef __FreeBSD__
+  const gchar *argv[] = {"cdcontrol", "-f", NULL, "eject", NULL};
+  argv[2] = unix_volume->device_path;
+#else
   const gchar *argv[] = { "eject", NULL, NULL };
 
   argv[1] = unix_volume->device_path;
+#endif
 
   eject_mount_do (volume, cancellable, callback, user_data, argv);
 }