dahdi-tools: fix build
[feed/telephony.git] / net / asterisk-13.x / patches / 051-musl-includes.patch
1 --- a/include/asterisk/compat.h
2 +++ b/include/asterisk/compat.h
3 @@ -68,7 +68,7 @@
4 #endif
5
6 #ifndef AST_POLL_COMPAT
7 -#include <sys/poll.h>
8 +#include <poll.h>
9 #else
10 #include "asterisk/poll-compat.h"
11 #endif
12 --- a/include/asterisk/poll-compat.h
13 +++ b/include/asterisk/poll-compat.h
14 @@ -83,7 +83,7 @@
15
16 #ifndef AST_POLL_COMPAT
17
18 -#include <sys/poll.h>
19 +#include <poll.h>
20
21 #define ast_poll(a, b, c) poll(a, b, c)
22
23 --- a/main/ast_expr2.c
24 +++ b/main/ast_expr2.c
25 @@ -93,6 +93,7 @@
26
27 #include "asterisk.h"
28
29 +#include <sys/cdefs.h>
30 #include <sys/types.h>
31 #include <stdio.h>
32
33 --- a/main/ast_expr2.y
34 +++ b/main/ast_expr2.y
35 @@ -14,6 +14,7 @@
36
37 #include "asterisk.h"
38
39 +#include <sys/cdefs.h>
40 #include <sys/types.h>
41 #include <stdio.h>
42