[BusyBox] [PATCH] eject
Erik Andersen
andersen at codepoet.org
Tue May 10 19:28:54 UTC 2005
On Tue May 10, 2005 at 03:30:27PM +0200, Tito wrote:
> --- coreutils/eject.c.orig 2005-05-10 13:53:11.000000000 +0200
> +++ coreutils/eject.c 2005-05-10 15:06:34.000000000 +0200
> @@ -30,37 +30,38 @@
> #include <sys/stat.h>
> #include <fcntl.h>
> #include <sys/ioctl.h>
> +#include <getopt.h>
> #include "busybox.h"
> #include <linux/cdrom.h> // needs to be after busybox.h or compile problems arise
As fond as I am of linux/cdrom.h (cdrom.h and I go way back)
please remove '#include <linux/cdrom.h>' and instead copy in
all needed defines so we do not include kernel headers. i.e.
-#include <linux/cdrom.h> // needs to be after busybox.h or compile problems arise
+// various defines swiped from linux/cdrom.h
+#define CDROMCLOSETRAY 0x5319 /* pendant of CDROMEJECT */
+#define CDROMEJECT 0x5309 /* Ejects the cdrom media */
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list