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

This commit is contained in:
hunshenshi 2019-07-27 06:33:12 +08:00 committed by Wei-Chiu Chuang
parent 62efb63006
commit 2fe450cb5e

View File

@ -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,