From da49f5852481adb0b3fa0b5ccba93b266f271c35 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 8 Jul 2009 02:58:38 +0200 Subject: move libc related stuff out of platform.h Signed-off-by: Denys Vlasenko --- miscutils/eject.c | 7 ++++--- miscutils/hdparm.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'miscutils') 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 @@ * Most of the dirty work blatantly ripped off from cat.c =) */ +#include #include "libbb.h" +/* Must be after libbb.h: they need size_t */ +#include +#include /* 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 -#include - static void eject_scsi(const char *dev) { static const char sg_commands[3][6] = { diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index e8a483830..362b212a3 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -11,8 +11,9 @@ * hdparm.c - Command line interface to get/set hard disk parameters * - by Mark Lord (C) 1994-2002 -- freely distributable */ -#include "libbb.h" #include +#include +#include "libbb.h" /* device types */ /* ------------ */ -- cgit v1.2.3