Skip to content

Commit

Permalink
perf tools: fix missing winsize definition
Browse files Browse the repository at this point in the history
In Android, struct winsize is not defined in the headers already
included in help.c. This leads to a compile error.

Including termios.h fixes the compilation error since it defines struct winsize.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1347065004-15306-7-git-send-email-irina.tirdea@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Irina Tirdea authored and Arnaldo Carvalho de Melo committed Sep 8, 2012
1 parent b771a83 commit 57ec0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/perf/util/help.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "exec_cmd.h"
#include "levenshtein.h"
#include "help.h"
#include <termios.h>

void add_cmdname(struct cmdnames *cmds, const char *name, size_t len)
{
Expand Down
1 change: 1 addition & 0 deletions tools/perf/util/top.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "types.h"
#include <stddef.h>
#include <stdbool.h>
#include <termios.h>

struct perf_evlist;
struct perf_evsel;
Expand Down

0 comments on commit 57ec0a9

Please sign in to comment.