meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/implicit-declaration-function-strlcat-strlcopy.patch
Fathi Boudra a231c431a5 android-tools: add recipe from AOSP tag android-5.1.1_r37
Android tools offer filsystem tools for creating sparse images,
so package them in package of its own.

This recipe is re-worked and not a straight import from meta-shr.

It's built from AOSP source. I've dropped the ubuntu-ism which will
never be upstreamed.

The intent is to be closer to the upstream AOSP source code and be able
to update the recipe regularly.

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-15 10:22:46 +02:00

43 lines
1.0 KiB
Diff

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