This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/master by this push:
     new 17fd9c3  ORC-702: [C++] Support big ORC files in Windows (#584)
17fd9c3 is described below

commit 17fd9c32b8bf2d6e6b0e4f44bd82c09be0b2b660
Author: Michael Spector <[email protected]>
AuthorDate: Mon Dec 21 14:08:26 2020 +0200

    ORC-702: [C++] Support big ORC files in Windows (#584)
    
    ### What changes were proposed in this pull request?
    
    Use 64-bit versions of fstat to support files bigger than 2GB in Windows.
    
    ### Why are the changes needed?
    
    To support big files.
    
    ### How was this patch tested?
    
    Manual
---
 c++/src/OrcFile.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/c++/src/OrcFile.cc b/c++/src/OrcFile.cc
index 009a8ce..a0158bb 100644
--- a/c++/src/OrcFile.cc
+++ b/c++/src/OrcFile.cc
@@ -30,6 +30,8 @@
 #include <io.h>
 #define S_IRUSR _S_IREAD
 #define S_IWUSR _S_IWRITE
+#define stat _stat64
+#define fstat _fstat64
 #else
 #include <unistd.h>
 #define O_BINARY 0

Reply via email to