Compatibility header for <linux/semaphore.h>. Just includes the proper
authorIan Abbott <abbotti@mev.co.uk>
Mon, 26 Jul 2010 11:14:07 +0000 (11:14 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 26 Jul 2010 11:14:07 +0000 (11:14 +0000)
<linux/semaphore.h> if CONFIG_COMEDI_HAVE_LINUX_SEMAPHORE_H is defined,
otherwise it includes <asm/semaphore.h> instead.

include/linux/semaphore.h [new file with mode: 0644]

diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h
new file mode 100644 (file)
index 0000000..5b32c94
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * linux/semaphore.h compatibility header
+ */
+
+#ifndef __COMPAT_LINUX_SEMAPHORE_H_
+#define __COMPAT_LINUX_SEMAPHORE_H_
+
+#include <linux/config.h>
+
+#ifdef CONFIG_COMEDI_HAVE_LINUX_SEMAPHORE_H
+
+#include_next <linux/semaphore.h>
+
+#else /* HAVE_LINUX_SEMAPHORE_H */
+
+#include <asm/semaphore.h>
+
+#endif /* HAVE_LINUX_SEMAPHORE_H */
+
+#endif /* __COMPAT_LINUX_SEMAPHORE_H_ */