![]() |
RTXI 1.3
|
00001 /* 00002 * asm/semaphore.h compatibility header 00003 */ 00004 00005 #ifndef __COMPAT_ASM_SEMAPHORE_H_ 00006 #define __COMPAT_ASM_SEMAPHORE_H_ 00007 00008 #include <linux/version.h> 00009 00010 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18) 00011 #define init_MUTEX(x) *(x)=MUTEX 00012 #define init_MUTEX_LOCKED(x) *(x)=MUTEX_LOCKED 00013 #define DECLARE_MUTEX(name) struct semaphore name=MUTEX 00014 #define DECLARE_MUTEX_LOCKED(name) struct semaphore name=MUTEX_LOCKED 00015 /* N.B. Cannot define missing sema_init() portably, so best not use it! */ 00016 #endif 00017 00018 #include_next <asm/semaphore.h> 00019 00020 #endif // __COMPAT_ASM_SEMAPHORE_H_