From f8c13e3158ee17a5cc518918731aeb789cd0bb34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Date: Mon, 28 Nov 2022 12:52:32 +1100 Subject: [PATCH] Use Bionic strlcpy when available Bionic provides its own version of strlcpy. Ignore the re-definition from SELinux for devices. Bug: 260539369 Test: lunch sdk && m sdk Change-Id: Icb9d8678c29562ab7b73d7a0f14a233fd71dfefd --- libselinux/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libselinux/Android.bp b/libselinux/Android.bp index b877dc39..8655d49c 100644 --- a/libselinux/Android.bp +++ b/libselinux/Android.bp @@ -110,6 +110,9 @@ cc_defaults { ], }, android: { + cflags: [ + "-DHAVE_STRLCPY" + ], srcs: [ "src/android/android_device.c", ],