ソースを参照

HDFS-14425. Native build fails on macos due to jlong in hdfs.c (#741)

hunshenshi 5 年 前
コミット
2fe450cb5e

+ 1 - 1
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,