ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/network_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/network_stats.c (file contents):
Revision 1.74 by tdb, Wed Jul 13 09:31:54 2005 UTC vs.
Revision 1.75 by ats, Sat Jul 30 13:23:46 2005 UTC

# Line 49 | Line 49
49   #include <sys/socket.h>
50   #include <net/if.h>
51   #include <ctype.h>
52 /* Stuff which could be defined by defining KERNEL, but
53 * that would be a bad idea, so we'll just declare it here
54 */
52   #include <linux/version.h>
53 < #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
54 < typedef __uint8_t __u8;
55 < typedef __uint16_t __u16;
59 < typedef __uint32_t __u32;
60 < typedef __uint64_t __u64;
61 < #else
53 > #include <asm/types.h>
54 > /* These aren't defined by asm/types.h unless the kernel is being
55 >   compiled, but some versions of ethtool.h need them. */
56   typedef __uint8_t u8;
57   typedef __uint16_t u16;
58   typedef __uint32_t u32;
59   typedef __uint64_t u64;
66 #endif
60   #include <linux/ethtool.h>
61   #include <linux/sockios.h>
62   #include <unistd.h>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines