aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/utils.c3
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 @@
#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)