summaryrefslogtreecommitdiffstats
path: root/source/a/eject/eject_for_mac.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/eject/eject_for_mac.patch')
-rw-r--r--source/a/eject/eject_for_mac.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/a/eject/eject_for_mac.patch b/source/a/eject/eject_for_mac.patch
new file mode 100644
index 000000000..c86e3c17b
--- /dev/null
+++ b/source/a/eject/eject_for_mac.patch
@@ -0,0 +1,12 @@
+diff -Nru /tmp/6rrvEn4EMT/eject-2.1.4/eject.c /tmp/Jon9ZzjSLN/eject-2.1.4/eject.c
+--- /tmp/6rrvEn4EMT/eject-2.1.4/eject.c 2007-03-12 14:15:26.000000000 +0100
++++ /tmp/Jon9ZzjSLN/eject-2.1.4/eject.c 2007-03-12 14:15:28.000000000 +0100
+@@ -552,7 +552,7 @@
+ gettimeofday(&time_start, NULL);
+
+ /* Send the CDROMEJECT command to the device. */
+- if (ioctl(fd, CDROMEJECT, 0) < 0) {
++ if (ioctl(fd, CDROMEJECT, 0) < 0 && errno != EIO) {
+ perror("ioctl");
+ exit(1);
+ }