Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame^] | 1 | From e5d94cf4882cc6516af52b794c6acb8e4d6469a3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> |
| 3 | Date: Mon, 18 May 2020 16:39:26 +0300 |
| 4 | Subject: [PATCH] tests: gen-ust-events-ns/tp.h: Fix build with musl libc |
| 5 | |
| 6 | Fix the following build error with musl libc: |
| 7 | In file included from ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:14, |
| 8 | from ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.c:10: |
| 9 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10: error: unknown type name 'ino_t'; did you mean 'int8_t'? |
| 10 | 17 | TP_ARGS(ino_t, ns_ino), |
| 11 | | ^~~~~ |
| 12 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10: error: unknown type name 'ino_t'; did you mean 'int8_t'? |
| 13 | 17 | TP_ARGS(ino_t, ns_ino), |
| 14 | | ^~~~~ |
| 15 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2: error: unknown type name 'ino_t'; did you mean 'int8_t'? |
| 16 | 17 | TP_ARGS(ino_t, ns_ino), |
| 17 | | ^~~~~~~ |
| 18 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2: error: unknown type name 'ino_t'; did you mean 'int8_t'? |
| 19 | 17 | TP_ARGS(ino_t, ns_ino), |
| 20 | | ^~~~~~~ |
| 21 | |
| 22 | Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/161] |
| 23 | |
| 24 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
| 25 | --- |
| 26 | tests/utils/testapp/gen-ust-events-ns/tp.h | 1 + |
| 27 | 1 file changed, 1 insertion(+) |
| 28 | |
| 29 | diff --git a/tests/utils/testapp/gen-ust-events-ns/tp.h b/tests/utils/testapp/gen-ust-events-ns/tp.h |
| 30 | index 4dbfed5..e0ddb29 100644 |
| 31 | --- a/tests/utils/testapp/gen-ust-events-ns/tp.h |
| 32 | +++ b/tests/utils/testapp/gen-ust-events-ns/tp.h |
| 33 | @@ -11,6 +11,7 @@ |
| 34 | #if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
| 35 | #define _TRACEPOINT_TP_H |
| 36 | |
| 37 | +#include <sys/types.h> |
| 38 | #include <lttng/tracepoint.h> |
| 39 | |
| 40 | TRACEPOINT_EVENT(tp, tptest, |
| 41 | -- |
| 42 | 2.17.1 |
| 43 | |