Commit 53e2eed2 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] remove 2.2 bits fromw anpipe

parent 8dc6c284
...@@ -100,13 +100,9 @@ typedef struct ...@@ -100,13 +100,9 @@ typedef struct
#define WAN_PACKET_MR_ALLMULTI 2 #define WAN_PACKET_MR_ALLMULTI 2
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef netdevice_t #ifndef netdevice_t
#include <linux/version.h> #define netdevice_t struct net_device
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
#define netdevice_t struct net_device
#else
#define netdevice_t struct device
#endif
#endif #endif
/* Private wanpipe socket structures. */ /* Private wanpipe socket structures. */
......
...@@ -19,11 +19,7 @@ ...@@ -19,11 +19,7 @@
#include <linux/version.h> #include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) #define netdevice_t struct net_device
#define netdevice_t struct net_device
#else
#define netdevice_t struct device
#endif
typedef struct { typedef struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment