Build with 2.6.19-rc3 fails
Elimar Riesebieter
riesebie at lxtec.de
Fri Oct 27 14:27:51 MDT 2006
On Fri, 27 Oct 2006 the mental interface of
Andreas Schwab told:
[...]
> --- src/netdriver/sheep.c 2006-10-05 20:28:12.000000000 +0200
> +++ src/netdriver/sheep.c 2006-10-05 21:27:08.000000000 +0200
Yeah, that patch works ;)
In addition we need:
diff -ur mol~/src/kmod/Linux/archinclude.h mol/src/kmod/Linux/archinclude.h
--- mol~/src/kmod/Linux/archinclude.h 2006-10-07 17:57:59.000000000 +0200
+++ mol/src/kmod/Linux/archinclude.h 2006-10-14 21:00:13.000000000 +0200
@@ -24,9 +24,18 @@
#include "mol_config.h"
#include "kconfig.h"
-#include <linux/config.h>
#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
+#include <linux/utsrelease.h>
+#endif
+
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#include <linux/config.h>
+#else
+#include <linux/autoconf.h>
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
#define LINUX_26
#endif
diff -ur mol~/src/kmod/Linux/dev.c mol/src/kmod/Linux/dev.c
--- mol~/src/kmod/Linux/dev.c 2006-10-07 17:57:59.000000000 +0200
+++ mol/src/kmod/Linux/dev.c 2006-10-14 21:00:13.000000000 +0200
@@ -15,7 +15,6 @@
*/
#include "archinclude.h"
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/miscdevice.h>
#include <linux/spinlock.h>
diff -ur mol~/src/kmod/Linux/kuname.c mol/src/kmod/Linux/kuname.c
--- mo~/src/kmod/Linux/kuname.c 2006-10-07 17:57:59.000000000 +0200
+++ mol/src/kmod/Linux/kuname.c 2006-10-14 21:00:13.000000000 +0200
@@ -14,12 +14,18 @@
*
*/
-#include <linux/config.h>
#include <linux/version.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#include <linux/utsrelease.h>
#endif
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#include <linux/config.h>
+#else
+#include <linux/autoconf.h>
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
#ifdef CONFIG_SMP
diff -ur mol~/src/netdriver/kuname.c mol/src/netdriver/kuname.c
--- mol~/src/netdriver/kuname.c 2006-10-07 17:57:59.000000000 +0200
+++ mol/src/netdriver/kuname.c 2006-10-14 21:00:13.000000000 +0200
@@ -14,12 +14,18 @@
*
*/
-#include <linux/config.h>
#include <linux/version.h>
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#include <linux/utsrelease.h>
#endif
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
+#include <linux/config.h>
+#else
+#include <linux/autoconf.h>
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
#ifdef CONFIG_SMP
Elimar
--
Planung:
Ersatz des Zufalls durch den Irrtum.
-unknown-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.terrasoftsolutions.com/pipermail/mol-general/attachments/20061027/1c214578/attachment.bin
More information about the mol-general
mailing list