eject, scsi/scsi.h vs. \"u8\"

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Nov 14 23:29:43 UTC 2009


Hi,

2.6.31.6:

...-c -o miscutils/eject.o miscutils/eject.c
In file included from miscutils/eject.c:20:
/staging/usr/include/scsi/scsi.h:145:
error: expected specifier-qualifier-list before 'u8'
/staging/usr/include/scsi/scsi.h:
In function 'scsi_varlen_cdb_lengt h':
/staging/usr/include/scsi/scsi.h:156:
error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'

anyone know what's going on there?

diff --git a/miscutils/eject.c b/miscutils/eject.c
index adff9e0..d6691b5 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -16,6 +16,7 @@
 #include <sys/mount.h>
 #include "libbb.h"
 /* Must be after libbb.h: they need size_t */
+typedef unsigned char u8;
 #include <scsi/sg.h>
 #include <scsi/scsi.h>
 



More information about the busybox mailing list