Messages in this thread Patch in this message |  | | | Subject | [patch] perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c | | From | Mike Galbraith <> | | Date | Sun, 17 Jan 2010 05:06:38 +0100 |
| |
perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c
Signed-off-by: Mike Galbraith <efault@gmx.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission>
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index f068584..31d8ac7 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c @@ -1,9 +1,13 @@ +#define _GNU_SOURCE #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> +#include <stdio.h> #include <fcntl.h> #include <string.h> #include <unistd.h> +#undef _GNU_SOURCE + #include "util.h" int mkdir_p(char *path, mode_t mode)
|  |