move libc related stuff out of platform.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -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] = {
|
||||
|
Reference in New Issue
Block a user