diff options
author | Bernhard Reutner-Fischer | 2006-05-19 11:54:02 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-05-19 11:54:02 +0000 |
commit | e2e56c7c4129de7d20df42e8239fd304c81ef29b (patch) | |
tree | 0f9eb8281fac2f87c79a888dac49b27a1965b366 /networking/interface.c | |
parent | e3c150bc67cb158ee854ffb498f0066c79cd842c (diff) | |
download | busybox-e2e56c7c4129de7d20df42e8239fd304c81ef29b.zip busybox-e2e56c7c4129de7d20df42e8239fd304c81ef29b.tar.gz |
- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
Diffstat (limited to 'networking/interface.c')
-rw-r--r-- | networking/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/interface.c b/networking/interface.c index eec696f..8784522 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -78,7 +78,6 @@ #define _PATH_PROCNET_DEV "/proc/net/dev" #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" #define new(p) ((p) = xcalloc(1,sizeof(*(p)))) -#define KRELEASE(maj,min,patch) ((maj) * 65536 + (min)*256 + (patch)) #ifdef HAVE_HWSLIP #include <net/if_slip.h> @@ -713,7 +712,7 @@ static int sockets_open(int family) if (force < 0) { force = 0; - if (get_kernel_revision() < KRELEASE(2, 1, 0)) + if (get_linux_version_code() < KERNEL_VERSION(2,1,0)) force = 1; if (access("/proc/net", R_OK)) force = 1; |