eject: band-aid for kernel headers using u8 type

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-11-15 02:48:01 +01:00
parent 0d7e2e7c3e
commit 72ac6901f4

View File

@ -16,6 +16,7 @@
#include <sys/mount.h> #include <sys/mount.h>
#include "libbb.h" #include "libbb.h"
/* Must be after libbb.h: they need size_t */ /* Must be after libbb.h: they need size_t */
#include "fix_u32.h"
#include <scsi/sg.h> #include <scsi/sg.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
@ -75,7 +76,7 @@ static void eject_cdrom(unsigned flags, const char *dev)
int cmd = CDROMEJECT; int cmd = CDROMEJECT;
if (flags & FLAG_CLOSE if (flags & FLAG_CLOSE
|| (flags & FLAG_SMART && ioctl(dev_fd, CDROM_DRIVE_STATUS) == CDS_TRAY_OPEN) || ((flags & FLAG_SMART) && ioctl(dev_fd, CDROM_DRIVE_STATUS) == CDS_TRAY_OPEN)
) { ) {
cmd = CDROMCLOSETRAY; cmd = CDROMCLOSETRAY;
} }