Skip to contentSkip to conversation

perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c

PATCH New Mike Galbraith 1 participant 1 message Jan 17, 2010 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c

perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c

Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>

LKML-Reference: <new-submission>

tools/perf/util/util.c +4 -0
index f068584..31d8ac7 100644
@@ -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)