Blame view

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