Added semaphore header distinction in minimal example.

This commit is contained in:
Florian Pose 2009-07-13 15:26:28 +00:00
parent a3c32e8b67
commit bb8370c5e8
1 changed files with 7 additions and 1 deletions

View File

@ -27,12 +27,18 @@
*
*****************************************************************************/
#include <linux/version.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/semaphore.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
#include <linux/semaphore.h>
#else
#include <asm/semaphore.h>
#endif
#include "../../include/ecrt.h" // EtherCAT realtime interface
/*****************************************************************************/