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
1 changed files with 1 additions and 1 deletions

View File

@ -3212,7 +3212,7 @@ tOffset hdfsGetDefaultBlockSizeAtPath(hdfsFS fs, const char *path)
path); path);
return -1; return -1;
} }
jthr = getDefaultBlockSize(env, jFS, jPath, &blockSize); jthr = getDefaultBlockSize(env, jFS, jPath, (jlong *)&blockSize);
(*env)->DeleteLocalRef(env, jPath); (*env)->DeleteLocalRef(env, jPath);
if (jthr) { if (jthr) {
errno = printExceptionAndFree(env, jthr, PRINT_EXC_ALL, errno = printExceptionAndFree(env, jthr, PRINT_EXC_ALL,