Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | Description: fix implicit declaration of stlcat/strlcopy functions. |
| 2 | Author: Fathi Boudra <fabo@debian.org> |
| 3 | |
| 4 | Upstream-Status: Inappropriate |
| 5 | --- |
| 6 | system/core/adb/adb.c | 1 + |
| 7 | system/core/fs_mgr/fs_mgr_fstab.c | 2 +- |
| 8 | system/core/include/cutils/sockets.h | 2 +- |
| 9 | 3 files changed, 3 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | --- a/system/core/fs_mgr/fs_mgr_fstab.c |
| 12 | +++ b/system/core/fs_mgr/fs_mgr_fstab.c |
| 13 | @@ -17,7 +17,7 @@ |
| 14 | #include <ctype.h> |
| 15 | #include <stdio.h> |
| 16 | #include <stdlib.h> |
| 17 | -#include <string.h> |
| 18 | +#include <bsd/string.h> |
| 19 | #include <sys/mount.h> |
| 20 | |
| 21 | #include "fs_mgr_priv.h" |
| 22 | --- a/system/core/include/cutils/sockets.h |
| 23 | +++ b/system/core/include/cutils/sockets.h |
| 24 | @@ -19,7 +19,7 @@ |
| 25 | |
| 26 | #include <errno.h> |
| 27 | #include <stdlib.h> |
| 28 | -#include <string.h> |
| 29 | +#include <bsd/string.h> |
| 30 | #include <stdbool.h> |
| 31 | |
| 32 | #ifdef HAVE_WINSOCK |
| 33 | --- a/system/core/adb/adb.c |
| 34 | +++ b/system/core/adb/adb.c |
| 35 | @@ -41,6 +41,7 @@ |
| 36 | #include <sys/prctl.h> |
| 37 | #include <getopt.h> |
| 38 | #include <selinux/selinux.h> |
| 39 | +#include <grp.h> |
| 40 | #else |
| 41 | #include "usb_vendors.h" |
| 42 | #endif |