提交 38cb76a3 编写于 作者: S Shreyas B. Prabhu 提交者: Rafael J. Wysocki

cpupower: Fix build error in cpufreq-info

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: NShreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Fixes: e98f033f (cpupower: fix how "cpupower frequency-info" interprets latency)
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 e98f033f
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <limits.h>
#include <getopt.h> #include <getopt.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册