0.9.53 compilation error using 2.2.18pre21 headers


Subject: 0.9.53 compilation error using 2.2.18pre21 headers
From: R Shapiro (reshapiro@mediaone.net)
Date: Tue Nov 14 2000 - 09:26:43 MST


I made the following change to sheep.c to get mol to compile with the
2.2.18pre21 headers:

diff -ur mol-0.9.53.orig/netdriver/sheep.c mol-0.9.53/netdriver/sheep.c
--- mol-0.9.53.orig/netdriver/sheep.c Mon Oct 30 15:35:32 2000
+++ mol-0.9.53/netdriver/sheep.c Tue Nov 14 11:06:39 2000
@@ -28,8 +28,10 @@
 #define LINUX_24
 #else
 #define net_device device
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
 typedef struct wait_queue *wait_queue_head_t;
 #define init_waitqueue_head(x) *(x)=NULL
+#endif
 #endif
 
 #define DEBUG 0

This gets through the compile. The problem is that the typedef and
the define are now already in /usr/src/linux/include/linux/wait.h.

-- 
reshapiro@mediaone.net



This archive was generated by hypermail 2a24 : Tue Nov 14 2000 - 09:27:15 MST