summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/svgalib/files')
-rw-r--r--media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch b/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch
index d62ebf274ab3..daa224563392 100644
--- a/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch
+++ b/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch
@@ -121,11 +121,15 @@ diff -urpwN svgalib-1.9.17/kernel/svgalib_helper/kernel25compat.h svgalib-1.9.17
diff -urpwN svgalib-1.9.17/kernel/svgalib_helper/kernel26compat.h svgalib-1.9.17.kernel2.6/kernel/svgalib_helper/kernel26compat.h
--- svgalib-1.9.17/kernel/svgalib_helper/kernel26compat.h 1970-01-01 02:00:00.000000000 +0200
+++ svgalib-1.9.17.kernel2.6/kernel/svgalib_helper/kernel26compat.h 2003-08-03 14:33:28.000000000 +0200
-@@ -0,0 +1,42 @@
+@@ -0,0 +1,46 @@
+#ifndef minor
+#define minor(x) MINOR(x)
+#endif
+
++#ifndef KERNEL_VERSION
++# include <linux/version.h>
++#endif
++
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+
+# ifdef KERNEL_2_6