From: Ian Abbott Date: Mon, 26 Jul 2010 11:14:07 +0000 (+0000) Subject: Compatibility header for . Just includes the proper X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05fd63dcdde70dd09941980585e9c3ef4b8a5d6b;p=comedi.git Compatibility header for . Just includes the proper if CONFIG_COMEDI_HAVE_LINUX_SEMAPHORE_H is defined, otherwise it includes instead. --- 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_ */