File use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch of Package iproute2

From: Michal Kubecek <mkubecek@suse.cz>
Date: Thu, 5 Dec 2013 13:17:35 +0100
Subject: use sysconf(_SC_CLK_TCK) if HZ undefined
Patch-mainline: No

---
 lib/utils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/utils.c b/lib/utils.c
index 4e9c719..ce91676 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -32,6 +32,10 @@
 
 #include "utils.h"
 
+#ifndef HZ
+#define HZ sysconf(_SC_CLK_TCK)
+#endif
+
 int get_integer(int *val, const char *arg, int base)
 {
 	long res;
-- 
1.8.1.4