--- projects/libstatgrab/src/libstatgrab/network_stats.c 2005/02/24 18:35:11 1.72 +++ projects/libstatgrab/src/libstatgrab/network_stats.c 2005/04/25 14:12:05 1.73 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: network_stats.c,v 1.72 2005/02/24 18:35:11 tdb Exp $ + * $Id: network_stats.c,v 1.73 2005/04/25 14:12:05 tdb Exp $ */ #ifdef HAVE_CONFIG_H @@ -52,10 +52,18 @@ /* Stuff which could be defined by defining KERNEL, but * that would be a bad idea, so we'll just declare it here */ +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +typedef __uint8_t __u8; +typedef __uint16_t __u16; +typedef __uint32_t __u32; +typedef __uint64_t __u64; +#else typedef __uint8_t u8; typedef __uint16_t u16; typedef __uint32_t u32; typedef __uint64_t u64; +#endif #include #include #include