diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-14 11:23:25 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-14 11:33:32 -0300 |
commit | ca575ad2093d7ca94238146c3c9267c61d2523bc (patch) | |
tree | 1ae49f8d0d124cc7739ac6f13767b0d6598501d6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b29c6574699dc475da5dbff8db19297b203aacce (diff) |
tools lib traceevent: Add correct header for ipv6 definitions
We need to include netinet/in.h to get the in6_addr struct definition, needed to
build it on the Android NDK:
In file included from event-parse.c:36:0:
/home/acme/android/android-ndk-r12/platforms/android-24/arch-arm/usr/include/netinet/ip6.h:82:18: error: field 'ip6_src' has incomplete type
struct in6_addr ip6_src; /* source address */
And it is the canonical way of getting IPv6 definitions, as described,
for instance, in Linux's 'man ipv6'
Doing that uncovers another problem: this source file uses PRIu64 but
doesn't include it, depending on it being included by chance via the now
replaced header (netinet/ip6.h), fix it.
Cc: Adrian Hunter <[email protected]>
Cc: Chris Phlipot <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions