diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-01 10:14:37 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2012-11-01 10:14:37 +0000 |
commit | dfadb7962a1ea8f681f1a5c8c203731ccb08b148 (patch) | |
tree | 43aba951d0af30b96c4c23543e4cfa5f3d7d911f /sysutils/unieject/files/patch-lib__eject.c | |
parent | Add GNU recutils, a set of tools and libraries to access human-editable, (diff) |
- Unbreak and update to version 6
- Add LICENSE
PR: ports/172069
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=306790
Diffstat (limited to 'sysutils/unieject/files/patch-lib__eject.c')
-rw-r--r-- | sysutils/unieject/files/patch-lib__eject.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/unieject/files/patch-lib__eject.c b/sysutils/unieject/files/patch-lib__eject.c new file mode 100644 index 000000000000..23f9b943ee8f --- /dev/null +++ b/sysutils/unieject/files/patch-lib__eject.c @@ -0,0 +1,20 @@ +--- lib/eject.c.orig 2009-06-27 21:37:27.000000000 +0900 ++++ lib/eject.c 2012-09-11 05:14:03.000000000 +0900 +@@ -110,7 +110,7 @@ + sts = cdio_close_tray(opts->device, NULL); + } + } else +- sts = mmc_start_stop_media((CdIo_t*)opts->cdio, opts->eject, 0, 0); ++ sts = mmc_start_stop_unit((CdIo_t*)opts->cdio, opts->eject, 0, 0, 0); + #elif defined(__APPLE__) + driver_return_code_t sts; + if ( opts->eject ) +@@ -121,7 +121,7 @@ + sts = cdio_close_tray(opts->device, NULL); + } + #else +- driver_return_code_t sts = mmc_start_stop_media((CdIo_t*)opts->cdio, opts->eject, 0, 0); ++ driver_return_code_t sts = mmc_start_stop_unit((CdIo_t*)opts->cdio, opts->eject, 0, 0, 0); + #endif + + return unieject_status(sts); |