提交 128dbd78 编写于 作者: A Alexey Dobriyan 提交者: Arnaldo Carvalho de Melo

perf tools: Fixup get_current_dir_name() compilation

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: NAlexey Dobriyan (SK hynix) <adobriyan@gmail.com>
Acked-by: NNamhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomainSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 c635813f
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册