summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-03-06 20:57:49 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-03-06 20:57:49 +0000
commite6094089032b2b30aecf036f0f6483646fb4ce7c (patch)
tree81449a2f7a81ecc9b34d8cde10ca8d2e56c6198f /sys-apps/eject/files
parentfix compiling under NPTL ... (diff)
downloadgentoo-2-e6094089032b2b30aecf036f0f6483646fb4ce7c.tar.gz
gentoo-2-e6094089032b2b30aecf036f0f6483646fb4ce7c.tar.bz2
gentoo-2-e6094089032b2b30aecf036f0f6483646fb4ce7c.zip
add patch for kernel-2.5
Diffstat (limited to 'sys-apps/eject/files')
-rw-r--r--sys-apps/eject/files/eject-2.0.12-kernel25-support.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-apps/eject/files/eject-2.0.12-kernel25-support.patch b/sys-apps/eject/files/eject-2.0.12-kernel25-support.patch
new file mode 100644
index 000000000000..f443260f68fb
--- /dev/null
+++ b/sys-apps/eject/files/eject-2.0.12-kernel25-support.patch
@@ -0,0 +1,17 @@
+--- eject-2.0.12/eject.c.orig 2003-03-06 22:38:27.000000000 +0200
++++ eject-2.0.12/eject.c 2003-03-06 22:41:07.000000000 +0200
+@@ -56,7 +56,13 @@
+ #include <sys/ioctl.h>
+ #include <sys/wait.h>
+ #include <sys/mtio.h>
+-#include <linux/types.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) /* 2.5.x breaks things again */
++# define __KERNEL__
++# include <linux/types.h>
++# undef __KERNEL__
++#else
++# include <linux/types.h>
++#endif
+ #include <linux/cdrom.h>
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)
+ #include <linux/ucdrom.h>