提交 00e99a49 编写于 作者: T Thomas Renninger 提交者: Arnaldo Carvalho de Melo

perf tools: Fix time function double declaration with glibc

It's enough to include the local "debug.h" file to trigger it.

man time reveals this is already declared in glibc:

time - get time in seconds
-> rename the variable.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: arjan@infradead.org
LPU-Reference: <1295620209-13859-2-git-send-email-trenn@suse.de>
Signed-off-by: NThomas Renninger <trenn@suse.de>
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 065bef5a
......@@ -44,11 +44,11 @@ static double cpu2y(int cpu)
return cpu2slot(cpu) * SLOT_MULT;
}
static double time2pixels(u64 time)
static double time2pixels(u64 __time)
{
double X;
X = 1.0 * svg_page_width * (time - first_time) / (last_time - first_time);
X = 1.0 * svg_page_width * (__time - first_time) / (last_time - first_time);
return X;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册