summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2004-02-01 11:56:25 +0000
committerTim Yamin <plasmaroo@gentoo.org>2004-02-01 11:56:25 +0000
commite0672f0873ae583930fea2f498798a2763a256ab (patch)
tree81a72214309f16b9eec5119ff699e1c3417eb4fa /sys-boot/lilo/files
parentclosing 23468 (tcl_version not being abided by during link phase), and 39119 ... (diff)
downloadgentoo-2-e0672f0873ae583930fea2f498798a2763a256ab.tar.gz
gentoo-2-e0672f0873ae583930fea2f498798a2763a256ab.tar.bz2
gentoo-2-e0672f0873ae583930fea2f498798a2763a256ab.zip
Added a patch to get LILO to compile on 2.6 headers; closes bug #32707.
Diffstat (limited to 'sys-boot/lilo/files')
-rw-r--r--sys-boot/lilo/files/lilo-22.5.8.lvm.2-6headers.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-boot/lilo/files/lilo-22.5.8.lvm.2-6headers.patch b/sys-boot/lilo/files/lilo-22.5.8.lvm.2-6headers.patch
new file mode 100644
index 000000000000..7c93db0ae03c
--- /dev/null
+++ b/sys-boot/lilo/files/lilo-22.5.8.lvm.2-6headers.patch
@@ -0,0 +1,16 @@
+--- lilo-22.5.8/geometry.c 2003-10-10 00:59:07.000000000 +0100
++++ lilo-22.5.8/geometry.c 2004-01-28 19:28:17.000000000 +0000
+@@ -99,6 +99,13 @@
+ #define HDIO_GETGEO HDIO_REQ
+ #endif
+
++/* plasmaroo@gentoo.org :: 2.6 Compatibility */
++
++#undef _IOR
++#undef _IOWR
++
++#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
++#define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
+
+ typedef struct _st_buf {
+ struct _st_buf *next;