patch-2.1.27 linux/include/linux/hdlcdrv.h

Next file: linux/include/linux/if_tr.h
Previous file: linux/include/linux/ax25.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/include/linux/hdlcdrv.h linux/include/linux/hdlcdrv.h
@@ -8,7 +8,10 @@
 #define _HDLCDRV_H
 
 #include <linux/sockios.h>
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < 0x20119
 #include <linux/if_ether.h>
+#endif
 #include <linux/netdevice.h>
 
 /* -------------------------------------------------------------------- */
@@ -39,7 +42,11 @@
 	int ptt;
 	int dcd;
 	int ptt_keyed;
+#if LINUX_VERSION_CODE < 0x20119
 	struct enet_statistics stats;
+#else
+	struct net_device_stats stats;
+#endif
 };
 
 struct hdlcdrv_ioctl {
@@ -231,7 +238,11 @@
 	struct hdlcdrv_bitbuffer bitbuf_hdlc;
 #endif /* HDLCDRV_DEBUG */
 
+#if LINUX_VERSION_CODE < 0x20119
 	struct enet_statistics stats;
+#else
+	struct net_device_stats stats;
+#endif
 	int ptt_keyed;
 
 	struct sk_buff_head send_queue;  /* Packets awaiting transmission */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov