From 05fd63dcdde70dd09941980585e9c3ef4b8a5d6b Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 26 Jul 2010 11:14:07 +0000 Subject: [PATCH] Compatibility header for . Just includes the proper if CONFIG_COMEDI_HAVE_LINUX_SEMAPHORE_H is defined, otherwise it includes instead. --- include/linux/semaphore.h | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..5b32c949 --- /dev/null +++ b/include/linux/semaphore.h @@ -0,0 +1,20 @@ +/* + * linux/semaphore.h compatibility header + */ + +#ifndef __COMPAT_LINUX_SEMAPHORE_H_ +#define __COMPAT_LINUX_SEMAPHORE_H_ + +#include + +#ifdef CONFIG_COMEDI_HAVE_LINUX_SEMAPHORE_H + +#include_next + +#else /* HAVE_LINUX_SEMAPHORE_H */ + +#include + +#endif /* HAVE_LINUX_SEMAPHORE_H */ + +#endif /* __COMPAT_LINUX_SEMAPHORE_H_ */ -- 2.26.2