From 4f0e6bbcde809d64faa6af81c4393508a3a7f4d2 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Wed, 22 Dec 1999 10:52:54 +0000 Subject: [PATCH] Dammit. SVN revision: 1739 --- epplets/net.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/epplets/net.c b/epplets/net.c index 3ff21aa..93b715a 100644 --- a/epplets/net.c +++ b/epplets/net.c @@ -43,9 +43,6 @@ #else # define D(x) ((void) 0) #endif -#if defined(linux) -# include -#endif char ** net_get_devices(unsigned long *count) { @@ -136,7 +133,7 @@ net_get_bytes_inout(const char *device, double *in_bytes, double *out_bytes) { if (colon) { *colon = ' '; } -# if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 1, 0) +# if LINUX_VERSION_CODE < 0x020100 sscanf(buff, "%s %s %*s %*s %*s %*s %s", dev, in_str, out_str); # else sscanf(buff, "%s %s %*s %*s %*s %*s %*s %*s %*s %s", dev, in_str, out_str);