summaryrefslogtreecommitdiff
path: root/miscutils/eject.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-07-08 02:58:38 +0200
committerDenys Vlasenko2009-07-08 02:58:38 +0200
commitda49f5852481adb0b3fa0b5ccba93b266f271c35 (patch)
tree3ab27dafe02a3723658ab2649e8b3ea28b024ac5 /miscutils/eject.c
parent95cc814dbd37a4cb5a69b5eac80bd3e5173fe908 (diff)
downloadbusybox-da49f5852481adb0b3fa0b5ccba93b266f271c35.zip
busybox-da49f5852481adb0b3fa0b5ccba93b266f271c35.tar.gz
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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 94a36c0..75618be 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -13,7 +13,11 @@
* Most of the dirty work blatantly ripped off from cat.c =)
*/
+#include <sys/mount.h>
#include "libbb.h"
+/* Must be after libbb.h: they need size_t */
+#include <scsi/sg.h>
+#include <scsi/scsi.h>
/* various defines swiped from linux/cdrom.h */
#define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */
@@ -27,9 +31,6 @@
/* Code taken from the original eject (http://eject.sourceforge.net/),
* refactored it a bit for busybox (ne-bb@nicoerfurth.de) */
-#include <scsi/sg.h>
-#include <scsi/scsi.h>
-
static void eject_scsi(const char *dev)
{
static const char sg_commands[3][6] = {