Skip to contentSkip to conversation

0.9.7b doesn't compile with kernel 2.4.23-pre7

PATCH New Bernhard Rosenkraenzer 1 participant 1 message Oct 13, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 0.9.7b doesn't compile with kernel 2.4.23-pre7

0.9.7b does a couple of type definitions etc. that are present in 2.4.23-pre7 headers.

Patch to #if LINUX_VERSION_CODE them attached.

LLaP
bero

Signature · 5 lines
Ark Linux - Linux for the masses
http://www.arklinux.org/

Redistribution and processing of this message is subject to
http://www.arklinux.org/terms.php
include/adriver.h renamed from include/adriver.h.ark +2 -0
@@ -129,11 +129,13 @@
 #endif
 #ifndef CONFIG_HAVE_PDE
 #include <linux/fs.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 23)
 static inline struct proc_dir_entry *PDE(const struct inode *inode)
 {
 	return (struct proc_dir_entry *) inode->u.generic_ip;
 }
 #endif
+#endif
 #ifndef cond_resched
 #define cond_resched() \
 	do { \