blob: e3aeda9c333f8f8bbeeffad82e342512f1dfff15 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 7ba1de909c587b6773a39ba9f6f9890987f35b24 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 11:30:53 +0800
4Subject: [PATCH] libtevent: fix musl libc compile error
5
6libldb depend on libtevent, build libldb with musl libc,
7will report error:
8tevent.h:1440:8: error: unknown type name 'pid_t'; did you mean 'div_t'?
9
10add missing headers to fix it.
11
12Signed-off-by: Changqing Li <changqing.li@windriver.com>
13---
14 tevent.h | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/tevent.h b/tevent.h
18index 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--
312.7.4
32