Remove 2.6 conditionals in example
This commit is contained in:
parent
e8dd5984c7
commit
52247cfc14
|
|
@ -32,16 +32,8 @@
|
|||
#include <linux/timer.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/err.h>
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)
|
||||
#include <linux/slab.h>
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
||||
|
|
|
|||
|
|
@ -32,12 +32,7 @@
|
|||
#include <linux/timer.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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue