X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fif_link.h;h=55d99e46ea81340d25cd855a7a84201ef4f8fa1a;hb=1269f7ae5f4bf23205de2cd45220b2382af78393;hp=6181a5d593bb9eb22d31bdc677a0d43f157136a4;hpb=ac387ef5ce7115f9539104011f0409eb6a1bbe99;p=sliver-openvswitch.git diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 6181a5d59..55d99e46e 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -3,6 +3,10 @@ #include +#ifdef HAVE_RTNL_LINK_STATS64 +#include_next +#else /* !HAVE_RTNL_LINK_STATS64 */ + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) #include_next #else @@ -12,9 +16,9 @@ * we really need from is struct rtnl_link_stats64, which in * turn only really needs __u64. */ #include -#endif +#include +#endif /* kernel < 2.6.19 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) /* The main device statistics structure */ struct rtnl_link_stats64 { __u64 rx_packets; /* total packets received */ @@ -47,6 +51,6 @@ struct rtnl_link_stats64 { __u64 rx_compressed; __u64 tx_compressed; }; -#endif /* linux kernel < 2.6.35 */ +#endif /* !HAVE_RTNL_LINK_STATS64 */ #endif