python-whoosh: bump to version 2.7.4
[buildroot-gz.git] / package / android-tools / 0007-include-cdefs-h-when-needed.patch
blobda4ee13a175eeb6b8834354f407fa7c71b00e129
1 Include cdefs.h wherever it is needed
3 cdefs.h is included from within a lot of glibc headers, so it almost
4 invariably and automagically gets pulled in with glibc.
6 However, this might not be the case with other C libraries. musl does
7 not provide cdefs.h so it does not include it from its own headers
8 (cdefs.h must be provided separately).
10 So we must include it when we are going to use macros it provides.
12 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
13 ---
14 core/adbd/services.c | 1 +
15 core/libcutils/android_reboot.c | 1 +
16 2 files changed, 2 insertions(+), 0 deletion(-)
18 diff --git a/core/adbd/services.c b/core/adbd/services.c
19 index 20c08d2..48e0241 100644
20 --- a/core/adbd/services.c
21 +++ b/core/adbd/services.c
22 @@ -20,6 +20,7 @@
23 #include <string.h>
24 #include <errno.h>
25 #include <pwd.h>
26 +#include <sys/cdefs.h>
28 #include "sysdeps.h"
30 diff --git a/core/libcutils/android_reboot.c b/core/libcutils/android_reboot.c
31 index 20c08d2..48e0241 100644
32 --- a/core/libcutils/android_reboot.c
33 +++ b/core/libcutils/android_reboot.c
34 @@ -23,6 +23,7 @@
35 #include <string.h>
36 #include <linux/reboot.h>
37 #include <sys/syscall.h>
38 +#include <sys/cdefs.h>
40 #include <cutils/android_reboot.h>