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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Nov 10 11:57:49 2011 +0100

wrappers: fix detection of DEFINE_SEMAPHORE()

---

 include/asm-generic/wrappers.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index b3f711d..8c3e7ad 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -74,6 +74,7 @@ static inline struct task_struct *wrap_find_task_by_pid(pid_t 
nr)
 #define DECLARE_IOCTL_HANDLER(name, filp, cmd, arg)            \
        long name(struct file *filp, unsigned int cmd, unsigned long arg)
 
+#include <linux/semaphore.h>
 #ifndef DEFINE_SEMAPHORE
 /* Legacy DECLARE_MUTEX vanished in 2.6.37 */
 #define DEFINE_SEMAPHORE(sem) DECLARE_MUTEX(sem)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to