Module: xenomai-gch
Branch: for-forge
Commit: 459303a2d0f582c608b87f5e12f2096425885c56
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=459303a2d0f582c608b87f5e12f2096425885c56

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Jun 16 00:40:33 2012 +0200

cobalt: apply ucLinux fix only when not compiling kernel

---

 include/cobalt/sched.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cobalt/sched.h b/include/cobalt/sched.h
index 4931b99..f0f7c7e 100644
--- a/include/cobalt/sched.h
+++ b/include/cobalt/sched.h
@@ -37,14 +37,14 @@ COBALT_DECL(int, sched_get_priority_min(int policy));
 
 COBALT_DECL(int, sched_get_priority_max(int policy));
 
-#endif /* !__KERNEL__ */
-
 #ifndef CPU_COUNT
 #define CPU_COUNT(__setp)    __PROVIDE_CPU_COUNT(__setp)
 #define __PROVIDE_CPU_COUNT(__setp)  __sched_cpucount(sizeof(cpu_set_t), 
__setp)
 int __sched_cpucount(size_t __setsize, const cpu_set_t *__setp);
 #endif /* !CPU_COUNT */
 
+#endif /* !__KERNEL__ */
+
 #ifndef __sched_extensions_defined
 #define __sched_extensions_defined
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to