Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 7ba1de909c587b6773a39ba9f6f9890987f35b24 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Tue, 24 Jul 2018 11:30:53 +0800 |
| 4 | Subject: [PATCH] libtevent: fix musl libc compile error |
| 5 | |
| 6 | libldb depend on libtevent, build libldb with musl libc, |
| 7 | will report error: |
| 8 | tevent.h:1440:8: error: unknown type name 'pid_t'; did you mean 'div_t'? |
| 9 | |
| 10 | add missing headers to fix it. |
| 11 | |
| 12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 13 | --- |
| 14 | tevent.h | 2 ++ |
| 15 | 1 file changed, 2 insertions(+) |
| 16 | |
| 17 | diff --git a/tevent.h b/tevent.h |
| 18 | index aa6fe0d..2572696 100644 |
| 19 | --- a/tevent.h |
| 20 | +++ b/tevent.h |
| 21 | @@ -32,6 +32,8 @@ |
| 22 | #include <talloc.h> |
| 23 | #include <sys/time.h> |
| 24 | #include <stdbool.h> |
| 25 | +#include <sys/stat.h> |
| 26 | +#include <sys/types.h> |
| 27 | |
| 28 | struct tevent_context; |
| 29 | struct tevent_ops; |
| 30 | -- |
| 31 | 2.7.4 |
| 32 | |