diff options
-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 63084e15e..2c23cd294 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c | |||
@@ -16,6 +16,7 @@ | |||
16 | 16 | ||
17 | #include <stdlib.h> | 17 | #include <stdlib.h> |
18 | #include <string.h> | 18 | #include <string.h> |
19 | #include <unistd.h> | ||
19 | #include <arpa/inet.h> | 20 | #include <arpa/inet.h> |
20 | 21 | ||
21 | #include "utils.h" | 22 | #include "utils.h" |
@@ -316,7 +317,7 @@ int __get_hz(void) | |||
316 | } | 317 | } |
317 | if (hz) | 318 | if (hz) |
318 | return hz; | 319 | return hz; |
319 | return HZ; | 320 | return sysconf(_SC_CLK_TCK); |
320 | } | 321 | } |
321 | 322 | ||
322 | const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) | 323 | const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) |