From: Hauke Mehrtens Date: Thu, 31 Mar 2011 16:21:35 +0000 (-0700) Subject: compat: semaphore.h mpoved from asm/ to linux/ X-Git-Tag: v2.6.39-rc1-2^0 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3f34341aea29e84a869d9a12a1a0aa0492d16703;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: semaphore.h mpoved from asm/ to linux/ In kernel <= 2.6.25 linux/semaphore.h does not exist. Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h new file mode 100644 index 0000000..78af4db --- /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 */