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.72 by tdb, Thu Feb 24 18:35:11 2005 UTC vs.
Revision 1.73 by tdb, Mon Apr 25 14:12:05 2005 UTC

# Line 52 | Line 52
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   */
55 + #include <linux/version.h>
56 + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
57 + typedef __uint8_t __u8;
58 + typedef __uint16_t __u16;
59 + typedef __uint32_t __u32;
60 + typedef __uint64_t __u64;
61 + #else
62   typedef __uint8_t u8;
63   typedef __uint16_t u16;
64   typedef __uint32_t u32;
65   typedef __uint64_t u64;
66 + #endif
67   #include <linux/ethtool.h>
68   #include <linux/sockios.h>
69   #include <unistd.h>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines