aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/android-tools/android-tools/implicit-declaration-function-strlcat-strlcopy.patch
blob: 64db6168c6380af5531b4d24a4da93563c11e5e4 (plain)
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
42
Description: fix implicit declaration of stlcat/strlcopy functions.
Author: Fathi Boudra <fabo@debian.org>

Upstream-Status: Inappropriate
---
 system/core/adb/adb.c                |    1 +
 system/core/fs_mgr/fs_mgr_fstab.c    |    2 +-
 system/core/include/cutils/sockets.h |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

--- a/system/core/fs_mgr/fs_mgr_fstab.c
+++ b/system/core/fs_mgr/fs_mgr_fstab.c
@@ -17,7 +17,7 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
+#include <bsd/string.h>
 #include <sys/mount.h>
 
 #include "fs_mgr_priv.h"
--- a/system/core/include/cutils/sockets.h
+++ b/system/core/include/cutils/sockets.h
@@ -19,7 +19,7 @@
 
 #include <errno.h>
 #include <stdlib.h>
-#include <string.h>
+#include <bsd/string.h>
 #include <stdbool.h>
 
 #ifdef HAVE_WINSOCK
--- a/system/core/adb/adb.c
+++ b/system/core/adb/adb.c
@@ -41,6 +41,7 @@
 #include <sys/prctl.h>
 #include <getopt.h>
 #include <selinux/selinux.h>
+#include <grp.h>
 #else
 #include "usb_vendors.h"
 #endif