On Wed, Oct 05, 2022 at 01:40:28PM -0700, Florian Fainelli wrote:
From: Alexey Dobriyan adobriyan@gmail.com
commit 128dbd78bd673f9edbc4413072b23efb6657feb0 upstream
strdup() prototype doesn't live in stdlib.h .
Add limits.h for PATH_MAX definition as well.
This fixes the build on Android.
Signed-off-by: Alexey Dobriyan (SK hynix) adobriyan@gmail.com Acked-by: Namhyung Kim namhyung@kernel.org Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain Signed-off-by: Arnaldo Carvalho de Melo acme@redhat.com Signed-off-by: Florian Fainelli f.fainelli@gmail.com
This patch is necessary to build perf with a musl-libc toolchain, not just Android's bionic.
Resending because missed stable the first time
Both backports now queued up, thanks.
greg k-h