From a402475c117eebe784591ae512a56ff7e163918c Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 18 Feb 2008 15:44:16 +0000 Subject: [PATCH] Only include switch.h when preemption is enabled git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1134 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drv/timer.c b/drv/timer.c index 45ce64b4..0e756dbb 100644 --- a/drv/timer.c +++ b/drv/timer.c @@ -74,7 +74,9 @@ #if CONFIG_KERNEL #include - #include + #if CONFIG_KERN_PREEMPTIVE + #include + #endif #if CONFIG_KERN_SIGNALS #include /* sig_wait(), sig_check() */ #include /* proc_current() */ -- 2.25.1