summaryrefslogtreecommitdiffstats
path: root/sys/dev/idt
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-11-16 22:33:42 +0000
committerimp <imp@FreeBSD.org>2003-11-16 22:33:42 +0000
commitbf46bca8b22499ef2fdfa7604dd6add7a7b9580a (patch)
tree1b643309a8b2a893ae1da1ac1a335f7d9e362978 /sys/dev/idt
parent7f78a6bfd3ccec2bb2633eebd6c836273dfed6ef (diff)
downloadFreeBSD-src-bf46bca8b22499ef2fdfa7604dd6add7a7b9580a.zip
FreeBSD-src-bf46bca8b22499ef2fdfa7604dd6add7a7b9580a.tar.gz
Gross kludge:
o when compiling lint, undefine certain things and redefine them so that the driver doesn't #error out. Since lint kernels aren't supposed to be bootable, I'm no troubled by this breakage. This fixes the tinderbox Suggested by: rwatson Approved by: bms
Diffstat (limited to 'sys/dev/idt')
-rw-r--r--sys/dev/idt/idt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/idt/idt.c b/sys/dev/idt/idt.c
index 0af6c7f..b816bda 100644
--- a/sys/dev/idt/idt.c
+++ b/sys/dev/idt/idt.c
@@ -106,6 +106,14 @@ __FBSDID("$FreeBSD$");
#include <net/if.h>
#include <net/if_arp.h>
+/* Gross kludge to make lint compile again. This sucks, but oh well */
+#ifdef COMPILING_LINT
+#undef MCLBYTES
+#undef MCLSHIFT
+#define MCLBYTES 2048
+#define MCLSHIFT 11
+#endif
+
#if MCLBYTES != 2048
#error "This nicstar driver depends on 2048 byte mbuf clusters."
#endif
OpenPOWER on IntegriCloud