1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- svgalib-1.9.17/kernel/svgalib_helper/kernel25compat.h.orig 2002-12-29 19:47:01.000000000 +0200
+++ svgalib-1.9.17/kernel/svgalib_helper/kernel25compat.h 2002-12-29 19:47:07.000000000 +0200
@@ -1,4 +1,8 @@
+#include <linux/version.h>
+
+#ifndef minor
#define minor(x) MINOR(x)
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
#define my_remap_page_range(vma, start, ofs, len, prot) remap_page_range(start,ofs,len,prot)
--- svgalib-1.9.17/kernel/svgalib_helper/Makefile.orig 2002-12-31 22:55:42.000000000 +0200
+++ svgalib-1.9.17/kernel/svgalib_helper/Makefile 2002-12-31 22:56:19.000000000 +0200
@@ -1,11 +1,11 @@
include ../../Makefile.cfg
-MODVER = $(shell grep CONFIG_MODVERSIONS $(INCLUDEDIR)/linux/autoconf.h)
+#MODVER = $(shell grep CONFIG_MODVERSIONS $(INCLUDEDIR)/linux/autoconf.h)
-ifeq ($(MODVER),)
- @echo INCLUDEDIR is not set up correctly
- exit 1
-endif
+#ifeq ($(MODVER),)
+# @echo INCLUDEDIR is not set up correctly
+# exit 1
+#endif
CFLAGS = -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)
CFLAGS += -I$(INCLUDEDIR)
|