diff options
author | Eric Andersen | 2003-02-12 10:56:53 +0000 |
---|---|---|
committer | Eric Andersen | 2003-02-12 10:56:53 +0000 |
commit | 496411b4891f8e7e3286ba36cd3aff5438b5f71d (patch) | |
tree | 1489131bf4c97f1ee67bf93e9fe5f570e4d588b1 | |
parent | c2843563f326e09249b3eff270ba6ffb8a19e90a (diff) | |
download | busybox-496411b4891f8e7e3286ba36cd3aff5438b5f71d.zip busybox-496411b4891f8e7e3286ba36cd3aff5438b5f71d.tar.gz |
Don't use HZ -- use sysconf(_SC_CLK_TCK)
-rw-r--r-- | networking/libiproute/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index 63084e1..2c23cd2 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c @@ -16,6 +16,7 @@ #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <arpa/inet.h> #include "utils.h" @@ -316,7 +317,7 @@ int __get_hz(void) } if (hz) return hz; - return HZ; + return sysconf(_SC_CLK_TCK); } const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) |