# --------------------------------------------
# 02/09/28	edward_peng@dlink.com.tw	1.693
# update sundance driver to support building on older kernel:
# conditionally include crc32.h, ethtool.h, mii.h, and compat.h
# if built outside the stock 2.4.x kernel.
# --------------------------------------------
#
diff -Nru a/drivers/net/sundance.c b/drivers/net/sundance.c
--- a/drivers/net/sundance.c	Sun Sep 29 19:36:03 2002
+++ b/drivers/net/sundance.c	Sun Sep 29 19:36:03 2002
@@ -146,18 +146,21 @@
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
 #include <linux/init.h>
-#include <linux/ethtool.h>
-#include <linux/mii.h>
 #include <asm/uaccess.h>
 #include <asm/processor.h>		/* Processor type for cache alignment. */
 #include <asm/bitops.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/spinlock.h>
-#ifndef _LOCAL_CRC32
+#ifndef _COMPAT_WITH_OLD_KERNEL
 #include <linux/crc32.h>
+#include <linux/ethtool.h>
+#include <linux/mii.h>
 #else
 #include "crc32.h"
+#include "ethtool.h"
+#include "mii.h"
+#include "compat.h"
 #endif
 
 /* These identify the driver base version and may not be removed. */
