mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c
@ 2010-01-17  4:06 Mike Galbraith
  0 siblings, 0 replies; only message in thread
From: Mike Galbraith @ 2010-01-17  4:06 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Arnaldo Carvalho de Melo, LKML


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)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-17  4:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-17  4:06 [patch] perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome