[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YRukaQbrgDWhiwGr@localhost.localdomain>
Date: Tue, 17 Aug 2021 14:58:33 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: acme@...nel.org
Cc: linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org
Subject: [PATCH] perf, android: fixup get_current_dir_name() compilation
strdup() prototype doesn't live in stdlib.h .
Add limits.h for PATH_MAX definition as well.
Signed-off-by: Alexey Dobriyan (SK hynix) <adobriyan@...il.com>
---
tools/perf/util/get_current_dir_name.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/tools/perf/util/get_current_dir_name.c
+++ b/tools/perf/util/get_current_dir_name.c
@@ -3,8 +3,9 @@
//
#ifndef HAVE_GET_CURRENT_DIR_NAME
#include "get_current_dir_name.h"
+#include <limits.h>
+#include <string.h>
#include <unistd.h>
-#include <stdlib.h>
/* Android's 'bionic' library, for one, doesn't have this */
Powered by blists - more mailing lists