Commit a2e3c55e authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Jialin Zhang
Browse files

perf tools: Fixup get_current_dir_name() compilation

stable inclusion
from stable-v5.10.148
commit beffc38dc6b208dd32957299e4f83a2f5731d0f9
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0WL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=beffc38dc6b208dd32957299e4f83a2f5731d0f9



--------------------------------

commit 128dbd78 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: default avatarAlexey Dobriyan (SK hynix) <adobriyan@gmail.com>
Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent ad3c0caf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment