lkml.org 
[lkml]   [2010]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] perf tools: fix trivial implicit getline() declaration build error tools/perf/util/util.c
FromMike Galbraith <>
DateSun, 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)



\
 
 \ /
  Last update: 2010-01-17 05:19    [from the cache]
©2003-2010