HDFS-11724. libhdfs compilation is broken on OS X. Contributed by John Zhuge.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d2fa826e Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d2fa826e Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d2fa826e Branch: refs/heads/HDFS-10467 Commit: d2fa826e52a208f209403d14e650084f61967a4c Parents: d86c4b3 Author: John Zhuge <[email protected]> Authored: Sat Apr 29 11:04:50 2017 -0700 Committer: Inigo <[email protected]> Committed: Tue May 2 14:52:06 2017 -0700 ---------------------------------------------------------------------- .../src/main/native/libhdfs/os/posix/thread_local_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/d2fa826e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/posix/thread_local_storage.c ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/posix/thread_local_storage.c b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/posix/thread_local_storage.c index 9faa594..e6b59d6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/posix/thread_local_storage.c +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/posix/thread_local_storage.c @@ -19,7 +19,7 @@ #include "os/thread_local_storage.h" #include <jni.h> -#include <malloc.h> +#include <stdlib.h> #include <pthread.h> #include <stdio.h> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
