summaryrefslogtreecommitdiff
path: root/tools/perf/util/help.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/help.h')
-rw-r--r--tools/perf/util/help.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/help.h b/tools/perf/util/help.h
index 14851b0e44f5..096c8bc45cd7 100644
--- a/tools/perf/util/help.h
+++ b/tools/perf/util/help.h
@@ -1,12 +1,14 @@
#ifndef __PERF_HELP_H
#define __PERF_HELP_H
+#include <sys/types.h>
+
struct cmdnames {
size_t alloc;
size_t cnt;
struct cmdname {
size_t len; /* also used for similarity index in help.c */
- char name[FLEX_ARRAY];
+ char name[];
} **names;
};