diff options
-rw-r--r-- | backport/backport-include/linux/semaphore.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backport/backport-include/linux/semaphore.h b/backport/backport-include/linux/semaphore.h new file mode 100644 index 00000000..d242df45 --- /dev/null +++ b/backport/backport-include/linux/semaphore.h @@ -0,0 +1,12 @@ +#ifndef __BACKPORT_LINUX_SEMAPHORE_H +#define __BACKPORT_LINUX_SEMAPHORE_H + +#include <linux/version.h> + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +#include_next <linux/semaphore.h> +#else +#include <asm/semaphore.h> +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */ + +#endif /* __BACKPORT_LINUX_SEMAPHORE_H */ |