master/ethernet.h
branchstable-1.5
changeset 2250 db932582b674
parent 1974 a5a44aa5915d
equal deleted inserted replaced
2244:fc891656a9fe 2250:db932582b674
    37 #ifndef __EC_ETHERNET_H__
    37 #ifndef __EC_ETHERNET_H__
    38 #define __EC_ETHERNET_H__
    38 #define __EC_ETHERNET_H__
    39 
    39 
    40 #include <linux/list.h>
    40 #include <linux/list.h>
    41 #include <linux/netdevice.h>
    41 #include <linux/netdevice.h>
       
    42 
       
    43 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
    42 #include <linux/semaphore.h>
    44 #include <linux/semaphore.h>
       
    45 #else
       
    46 #include <asm/semaphore.h>
       
    47 #endif
    43 
    48 
    44 #include "globals.h"
    49 #include "globals.h"
    45 #include "slave.h"
    50 #include "slave.h"
    46 #include "datagram.h"
    51 #include "datagram.h"
    47 
    52