aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/get_current_dir_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/get_current_dir_name.c')
-rw-r--r--tools/perf/util/get_current_dir_name.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/get_current_dir_name.c b/tools/perf/util/get_current_dir_name.c
index b205d929245f..e68935e9ac8c 100644
--- 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 */