diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-19 11:54:02 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-05-19 11:54:02 +0000 |
commit | 7e57aa9ef910d543aef7eae372df8a629e4c9aab (patch) | |
tree | 0f9eb8281fac2f87c79a888dac49b27a1965b366 /networking | |
parent | 78bb3493dbe53579445a4b2947a1286479308ac0 (diff) | |
download | busybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.tar.gz busybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.tar.bz2 busybox-w32-7e57aa9ef910d543aef7eae372df8a629e4c9aab.zip |
- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
git-svn-id: svn://busybox.net/trunk/busybox@15121 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-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 eec696fef..878452236 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -78,7 +78,6 @@ | |||
78 | #define _PATH_PROCNET_DEV "/proc/net/dev" | 78 | #define _PATH_PROCNET_DEV "/proc/net/dev" |
79 | #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" | 79 | #define _PATH_PROCNET_IFINET6 "/proc/net/if_inet6" |
80 | #define new(p) ((p) = xcalloc(1,sizeof(*(p)))) | 80 | #define new(p) ((p) = xcalloc(1,sizeof(*(p)))) |
81 | #define KRELEASE(maj,min,patch) ((maj) * 65536 + (min)*256 + (patch)) | ||
82 | 81 | ||
83 | #ifdef HAVE_HWSLIP | 82 | #ifdef HAVE_HWSLIP |
84 | #include <net/if_slip.h> | 83 | #include <net/if_slip.h> |
@@ -713,7 +712,7 @@ static int sockets_open(int family) | |||
713 | 712 | ||
714 | if (force < 0) { | 713 | if (force < 0) { |
715 | force = 0; | 714 | force = 0; |
716 | if (get_kernel_revision() < KRELEASE(2, 1, 0)) | 715 | if (get_linux_version_code() < KERNEL_VERSION(2,1,0)) |
717 | force = 1; | 716 | force = 1; |
718 | if (access("/proc/net", R_OK)) | 717 | if (access("/proc/net", R_OK)) |
719 | force = 1; | 718 | force = 1; |