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

pgaref pushed a commit to branch branch-1.6
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.6 by this push:
     new 0eaeeb7  ORC-702: [C++] Support big ORC files in Windows (#585)
0eaeeb7 is described below

commit 0eaeeb73b7e14c00337778002c4567f0ffbe98ba
Author: Michael Spector <[email protected]>
AuthorDate: Mon Dec 21 15:27:50 2020 +0200

    ORC-702: [C++] Support big ORC files in Windows (#585)
    
    ### 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