X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fif_link.h;h=55d99e46ea81340d25cd855a7a84201ef4f8fa1a;hb=24190e86c8ddedc3b20669e5eeb0ab5fc00a6255;hp=4afc22b66d49cc1000c1698f52fc95c6a23e5330;hpb=8e801baacf583059c918f3eb194d86d0f95e8092;p=openvswitch diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 4afc22b6..55d99e46 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 @@ -13,9 +17,8 @@ * turn only really needs __u64. */ #include #include -#endif +#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 */ @@ -48,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