From c932d9783a3b6a21e7b6199cb037caaca9b6b1e8 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 31 Mar 2011 09:21:35 -0700 Subject: [PATCH] compat: semaphore.h mpoved from asm/ to linux/ In kernel <= 2.6.25 linux/semaphore.h does not exist. Signed-off-by: Hauke Mehrtens --- include/linux/semaphore.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/linux/semaphore.h diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h new file mode 100644 index 000000000000..78af4db376fd --- /dev/null +++ b/include/linux/semaphore.h @@ -0,0 +1,12 @@ +#ifndef _COMPAT_LINUX_SEMAPHORE_H +#define _COMPAT_LINUX_SEMAPHORE_H 1 + +#include + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) +#include_next +#else +#include +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)) */ + +#endif /* _COMPAT_LINUX_SEMAPHORE_H */ -- 2.30.2