diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2004-02-23 21:51:12 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2004-02-23 21:51:12 +0000 |
commit | 3d2a7796cd8177260a1f2391fc239ba743c30b1c (patch) | |
tree | 24a19a155546c57dd630ee8d5ca7a0617615663b /media-libs/svgalib/files | |
parent | Fix broken reverse resolving for IPv6 addresses, bug #42492. Research done by (diff) | |
download | gentoo-2-3d2a7796cd8177260a1f2391fc239ba743c30b1c.tar.gz gentoo-2-3d2a7796cd8177260a1f2391fc239ba743c30b1c.tar.bz2 gentoo-2-3d2a7796cd8177260a1f2391fc239ba743c30b1c.zip |
Fix bug #42644 (2.4.23 also uses irqreturn_t, so do not define it then).
Diffstat (limited to 'media-libs/svgalib/files')
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.18-linux2.6.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/media-libs/svgalib/files/svgalib-1.9.18-linux2.6.patch b/media-libs/svgalib/files/svgalib-1.9.18-linux2.6.patch index 66bd65354ba2..c1b489473499 100644 --- a/media-libs/svgalib/files/svgalib-1.9.18-linux2.6.patch +++ b/media-libs/svgalib/files/svgalib-1.9.18-linux2.6.patch @@ -44,6 +44,29 @@ diff -urpN svgalib-1.9.18/kernel/svgalib_helper/Makefile svgalib-1.9.18.new/kern diff -urpN svgalib-1.9.18/kernel/svgalib_helper/kernel26compat.h svgalib-1.9.18.new/kernel/svgalib_helper/kernel26compat.h --- svgalib-1.9.18/kernel/svgalib_helper/kernel26compat.h 2003-10-04 15:42:01.000000000 +0200 +++ svgalib-1.9.18.new/kernel/svgalib_helper/kernel26compat.h 2004-02-23 00:41:03.176196576 +0200 +@@ -1,5 +1,8 @@ + #ifndef KERNEL_VERSION + # include <linux/version.h> ++#else ++# undef KERNEL_VERSION ++# include <linux/version.h> + #endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) + +@@ -9,9 +12,11 @@ + + # define my_io_remap_page_range(vma, start, ofs, len, prot) io_remap_page_range(start,ofs,len,prot) + ++# if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) + typedef void irqreturn_t; +-# define IRQ_NONE +-# define IRQ_HANDLED ++# define IRQ_NONE ++# define IRQ_HANDLED ++# endif + + #else /* Kernel 2.6 */ + @@ -43,9 +43,36 @@ static inline int devfs_unregister_chrde } #endif |