diff options
author | Anton Adamansky <adamansky@gmail.com> | 2015-07-10 12:53:42 +0600 |
---|---|---|
committer | Anton Adamansky <adamansky@gmail.com> | 2015-07-10 12:53:42 +0600 |
commit | 7bc31de83c07f88c685b41e41a96d414976b838c (patch) | |
tree | 6d1050e88941d4374ed8bc02d7f307db142ad10f | |
parent | 10f0286266b69def217fa234ca987c5753e27dd7 (diff) | |
download | ejdb-7bc31de83c07f88c685b41e41a96d414976b838c.tar.gz ejdb-7bc31de83c07f88c685b41e41a96d414976b838c.tar.bz2 ejdb-7bc31de83c07f88c685b41e41a96d414976b838c.zip |
working on #149
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/tcutil/win32/platform.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ff23dc4..5d6c68d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ endif(POLICY CMP0042) if (CMAKE_SIZEOF_VOID_P MATCHES 8) set(PROJECT_ARCH "x86_64") + add_definitions("-D_FILE_OFFSET_BITS=64") else(CMAKE_SIZEOF_VOID_P MATCHES 8) set(PROJECT_ARCH "x86") endif(CMAKE_SIZEOF_VOID_P MATCHES 8) diff --git a/src/tcutil/win32/platform.h b/src/tcutil/win32/platform.h index a111070..a037e21 100644 --- a/src/tcutil/win32/platform.h +++ b/src/tcutil/win32/platform.h @@ -46,6 +46,7 @@ ssize_t win_pwrite(HANDLE fd, const void *buf, size_t count, off_t offset); ssize_t win_pread(HANDLE fd, void *buf, size_t size, off_t off); #define mkdir(a, b) _mkdir(a) +#undef fstat #define fstat win_fstat #define lstat stat #define sysconf_SC_CLK_TCK 64 |