From 2fe450cb5e294a39e30b0d253c1e09135d967ba8 Mon Sep 17 00:00:00 2001 From: hunshenshi <289517357@qq.com> Date: Sat, 27 Jul 2019 06:33:12 +0800 Subject: [PATCH] HDFS-14425. Native build fails on macos due to jlong in hdfs.c (#741) --- .../hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c index 2fd05929ee6..b8442b487d5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c @@ -3212,7 +3212,7 @@ tOffset hdfsGetDefaultBlockSizeAtPath(hdfsFS fs, const char *path) path); return -1; } - jthr = getDefaultBlockSize(env, jFS, jPath, &blockSize); + jthr = getDefaultBlockSize(env, jFS, jPath, (jlong *)&blockSize); (*env)->DeleteLocalRef(env, jPath); if (jthr) { errno = printExceptionAndFree(env, jthr, PRINT_EXC_ALL,