From fbcae8f09d778a29568965aab6a6b8036a7db9f0 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 12 Oct 2006 12:48:21 +0000 Subject: Fix nodevice atpic compile. Pointy hat to: jhb --- sys/amd64/amd64/intr_machdep.c | 5 +++++ sys/amd64/amd64/machdep.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/intr_machdep.c b/sys/amd64/amd64/intr_machdep.c index 65dd827..4495638 100644 --- a/sys/amd64/amd64/intr_machdep.c +++ b/sys/amd64/amd64/intr_machdep.c @@ -56,6 +56,11 @@ #include #endif +#ifndef DEV_ATPIC +#include +#include +#endif + #define MAX_STRAY_LOG 5 typedef void (*mask_fn)(void *); diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 6be2c82..d771323 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -125,9 +125,11 @@ __FBSDID("$FreeBSD$"); #include #endif -#include +#ifdef DEV_ATPIC #include +#else #include +#endif #include #include -- cgit v1.1