diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-08 02:58:38 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-08 02:58:38 +0200 |
commit | da49f5852481adb0b3fa0b5ccba93b266f271c35 (patch) | |
tree | 3ab27dafe02a3723658ab2649e8b3ea28b024ac5 /miscutils/eject.c | |
parent | 95cc814dbd37a4cb5a69b5eac80bd3e5173fe908 (diff) | |
download | busybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.tar.gz busybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.tar.bz2 busybox-w32-da49f5852481adb0b3fa0b5ccba93b266f271c35.zip |
move libc related stuff out of platform.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r-- | miscutils/eject.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c index 94a36c0da..75618bea6 100644 --- a/miscutils/eject.c +++ b/miscutils/eject.c | |||
@@ -13,7 +13,11 @@ | |||
13 | * Most of the dirty work blatantly ripped off from cat.c =) | 13 | * Most of the dirty work blatantly ripped off from cat.c =) |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <sys/mount.h> | ||
16 | #include "libbb.h" | 17 | #include "libbb.h" |
18 | /* Must be after libbb.h: they need size_t */ | ||
19 | #include <scsi/sg.h> | ||
20 | #include <scsi/scsi.h> | ||
17 | 21 | ||
18 | /* various defines swiped from linux/cdrom.h */ | 22 | /* various defines swiped from linux/cdrom.h */ |
19 | #define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */ | 23 | #define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */ |
@@ -27,9 +31,6 @@ | |||
27 | /* Code taken from the original eject (http://eject.sourceforge.net/), | 31 | /* Code taken from the original eject (http://eject.sourceforge.net/), |
28 | * refactored it a bit for busybox (ne-bb@nicoerfurth.de) */ | 32 | * refactored it a bit for busybox (ne-bb@nicoerfurth.de) */ |
29 | 33 | ||
30 | #include <scsi/sg.h> | ||
31 | #include <scsi/scsi.h> | ||
32 | |||
33 | static void eject_scsi(const char *dev) | 34 | static void eject_scsi(const char *dev) |
34 | { | 35 | { |
35 | static const char sg_commands[3][6] = { | 36 | static const char sg_commands[3][6] = { |