From 70fac5d1d53983c59516afd410e0b066a46c1232 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Thu, 25 May 2017 17:06:26 +0900 Subject: [PATCH] YARN-6141. ppc64le on Linux doesn't trigger __linux get_executable codepath. Contributed by Sonia Garudi and Ayappan. --- .../src/main/native/container-executor/impl/get_executable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/get_executable.c b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/get_executable.c index 49ae0937f92..ce46b776fd8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/get_executable.c +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/get_executable.c @@ -142,7 +142,7 @@ char* get_executable(char *argv0) { return __get_exec_sysctl(mib); } -#elif defined(__linux) +#elif defined(__linux__) char* get_executable(char *argv0) {