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>
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
26 +#include <sys/cdefs.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
36 #include <linux/reboot.h>
37 #include <sys/syscall.h>
38 +#include <sys/cdefs.h>
40 #include <cutils/android_reboot.h>