master/ethernet.h
changeset 2253 5be97f6cc76a
parent 2045 ff2a13a4603c
child 2589 2b9c78543663
equal deleted inserted replaced
2249:6dbd7594dd1d 2253:5be97f6cc76a
    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