HDFS-4484. libwebhdfs compilation broken with gcc 4.6.2. Contributed by Colin Patrick McCabe.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1455782 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c8419f14f
commit
06f711d819
|
@ -399,6 +399,9 @@ Release 2.0.5-beta - UNRELEASED
|
|||
HDFS-4522. LightWeightGSet expects incrementing a volatile to be atomic.
|
||||
(Colin Patrick McCabe via atm)
|
||||
|
||||
HDFS-4484. libwebhdfs compilation broken with gcc 4.6.2. (Colin Patrick
|
||||
McCabe via atm)
|
||||
|
||||
Release 2.0.4-alpha - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -48,6 +48,7 @@ add_executable(test_libwebhdfs_ops
|
|||
)
|
||||
target_link_libraries(test_libwebhdfs_ops
|
||||
webhdfs
|
||||
native_mini_dfs
|
||||
)
|
||||
|
||||
add_executable(test_libwebhdfs_read
|
||||
|
@ -69,4 +70,6 @@ add_executable(test_libwebhdfs_threaded
|
|||
)
|
||||
target_link_libraries(test_libwebhdfs_threaded
|
||||
webhdfs
|
||||
native_mini_dfs
|
||||
pthread
|
||||
)
|
||||
|
|
|
@ -257,7 +257,8 @@ int main(int argc, char **argv)
|
|||
|
||||
const char* path[] = {"/foo", "/foo/bar", "foobar", "//foo/bar//foobar",
|
||||
"foo//bar", "foo/bar///", "/", "////"};
|
||||
for (int i = 0; i < 8; i++) {
|
||||
int i;
|
||||
for (i = 0; i < 8; i++) {
|
||||
fprintf(stderr, "hdfsSetWorkingDirectory: %s, %s\n",
|
||||
((result = hdfsSetWorkingDirectory(fs, path[i])) ?
|
||||
"Failed!" : "Success!"),
|
||||
|
@ -281,8 +282,8 @@ int main(int argc, char **argv)
|
|||
fprintf(stderr, "Name: %s, ", fileInfo->mName);
|
||||
fprintf(stderr, "Type: %c, ", (char)(fileInfo->mKind));
|
||||
fprintf(stderr, "Replication: %d, ", fileInfo->mReplication);
|
||||
fprintf(stderr, "BlockSize: %lld, ", fileInfo->mBlockSize);
|
||||
fprintf(stderr, "Size: %lld, ", fileInfo->mSize);
|
||||
fprintf(stderr, "BlockSize: %"PRId64", ", fileInfo->mBlockSize);
|
||||
fprintf(stderr, "Size: %"PRId64", ", fileInfo->mSize);
|
||||
fprintf(stderr, "LastMod: %s", ctime(&fileInfo->mLastMod));
|
||||
fprintf(stderr, "Owner: %s, ", fileInfo->mOwner);
|
||||
fprintf(stderr, "Group: %s, ", fileInfo->mGroup);
|
||||
|
@ -305,8 +306,8 @@ int main(int argc, char **argv)
|
|||
fprintf(stderr, "Name: %s, ", fileList[i].mName);
|
||||
fprintf(stderr, "Type: %c, ", (char)fileList[i].mKind);
|
||||
fprintf(stderr, "Replication: %d, ", fileList[i].mReplication);
|
||||
fprintf(stderr, "BlockSize: %lld, ", fileList[i].mBlockSize);
|
||||
fprintf(stderr, "Size: %lld, ", fileList[i].mSize);
|
||||
fprintf(stderr, "BlockSize: %"PRId64", ", fileList[i].mBlockSize);
|
||||
fprintf(stderr, "Size: %"PRId64", ", fileList[i].mSize);
|
||||
fprintf(stderr, "LastMod: %s", ctime(&fileList[i].mLastMod));
|
||||
fprintf(stderr, "Owner: %s, ", fileList[i].mOwner);
|
||||
fprintf(stderr, "Group: %s, ", fileList[i].mGroup);
|
||||
|
|
Loading…
Reference in New Issue