aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2010-01-16 14:21:15 +0100
committerIngo Molnar <[email protected]>2010-01-17 07:53:09 +0100
commit69e3f52d1b1a3ed4390bb8a09bb1324265af7fbf (patch)
tree33f9f9c20674efe68b7127e28cf2b456bf0cdfac /tools/perf/scripts/python/flamegraph.py
parentd6f962b57bfaab62891c7abbf1469212a56d6103 (diff)
perf: Fix implicit declaration of getline in util.c
getline() is considered as undeclared in util/util.c because it includes string.h, that in turn includes stdio.h, without having defined _GNU_SOURCE. But util.c also includes util.h that handles the _GNU_SOURCE and all the needed inclusions already. Let's include only util.h and sys/mman.h which is the only one header not handled by util.h This fixes the following build error: util/util.c: In function 'slow_copyfile': util/util.c:49: erreur: implicit declaration of function 'getline' util/util.c:49: erreur: nested extern declaration of 'getline' Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Paul Mackerras <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions