Module: xenomai-head
Branch: master
Commit: 567d99102c36f52388c846cb8e61119f7e18c2f2
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=567d99102c36f52388c846cb8e61119f7e18c2f2

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Feb  3 11:46:31 2011 +0100

wrappers: wrap DECLARE_MUTEX in DEFINE_SEMAPHORE (2.6.37+)

---

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

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index 70c7d6f..ad056ca 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -604,4 +604,9 @@ static inline void wrap_proc_dir_entry_owner(struct 
proc_dir_entry *entry)
 #define unlocked_ioctl ioctl
 #endif
 
+#ifndef DECLARE_MUTEX
+/* Legacy DECLARE_MUTEX vanished in 2.6.37 */
+#define DECLARE_MUTEX(sem) DEFINE_SEMAPHORE(sem)
+#endif
+
 #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */


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

Reply via email to