From: bernie Date: Mon, 18 Feb 2008 15:44:16 +0000 (+0000) Subject: Only include switch.h when preemption is enabled X-Git-Tag: 1.0.0~118 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=inline;h=a402475c117eebe784591ae512a56ff7e163918c;p=bertos.git Only include switch.h when preemption is enabled git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1134 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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() */