Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/common/HWCrc32c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,21 @@ void HWCrc32c::updateInt64(const char * b, int len) {
}
}

#else
namespace Hdfs {
namespace Internal {

bool HWCrc32c::available() {
return false;
}

void HWCrc32c::update(const void * b, int len) {
}

void HWCrc32c::updateInt64(const char * b, int len) {
}

}
}

#endif /* _HDFS_LIBHDFS3_COMMON_HWCHECKSUM_H_ */