[PATCH] cpupower: Fix build error in cpufreq-info

From: Shreyas B. Prabhu
Date: Mon Jan 18 2016 - 10:15:32 EST


Fix the following build error by including limits.h -

utils/cpufreq-info.c: In function âget_latencyâ:
utils/cpufreq-info.c:437:29: error: âUINT_MAXâ undeclared (first use in
this function)
if (!latency || latency == UINT_MAX) {
^
Signed-off-by: Shreyas B. Prabhu <shreyas@xxxxxxxxxxxxxxxxxx>
Fixes: e98f033f94f3 (cpupower: fix how "cpupower frequency-info" interprets latency)
---
tools/power/cpupower/utils/cpufreq-info.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/power/cpupower/utils/cpufreq-info.c b/tools/power/cpupower/utils/cpufreq-info.c
index 8f3f5bb9c74e..590d12a25f6e 100644
--- a/tools/power/cpupower/utils/cpufreq-info.c
+++ b/tools/power/cpupower/utils/cpufreq-info.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>

#include <getopt.h>

--
1.9.3