Skip to content

Commit

Permalink
Fix build of cpl_vsil_hdfs.cpp (master only)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 31, 2024
1 parent 868cf23 commit c95081c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions port/cpl_vsil_hdfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class VSIHdfsHandle final : public VSIVirtualHandle
size_t Read(void *pBuffer, size_t nSize, size_t nMemb) override;
size_t Write(const void *pBuffer, size_t nSize, size_t nMemb) override;
vsi_l_offset Length();
void ClearErr() override;
int Eof() override;
int Error() override;
int Flush() override;
int Close() override;
};
Expand Down Expand Up @@ -208,6 +210,15 @@ int VSIHdfsHandle::Eof()
return bEOF;
}

int VSIHdfsHandle::Error()
{
return 0;
}

void VSIHdfsHandle::ClearErr()
{
}

int VSIHdfsHandle::Flush()
{
return hdfsFlush(poFilesystem, poFile);
Expand Down

0 comments on commit c95081c

Please sign in to comment.