Skip to content

Commit 4afa7dc

Browse files
committed
fix compiler in M4 for mac
1 parent b7aa758 commit 4afa7dc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cmake/Thirdparty.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ if (TARS_GZIP)
274274
set(LIB_GZIP "z")
275275

276276
ExternalProject_Add(ADD_${LIB_GZIP}
277-
URL http://cdn.tarsyun.com/src/zlib-1.2.11.tar.gz
277+
URL http://cdn.tarsyun.com/src/zlib-1.3.1.tar.gz
278278
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/download
279279
PREFIX ${CMAKE_BINARY_DIR}
280280
INSTALL_DIR ${CMAKE_SOURCE_DIR}
281281
CONFIGURE_COMMAND ${CMAKE_COMMAND} . -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/src/zlib -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
282282
SOURCE_DIR ${CMAKE_BINARY_DIR}/src/zlib-lib
283283
BUILD_IN_SOURCE 1
284284
BUILD_COMMAND make -j4
285-
URL_MD5 1c9f62f0778697a09d36121ead88e08e
285+
URL_MD5 9855b6d802d7fe5b7bd5b196a2271655
286286
)
287287

288288
endif ()

util/src/tc_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,9 +1478,9 @@ bool TC_Port::getDiskInfo(int64_t &totalSize, int64_t& availableSize, float& use
14781478

14791479
return true;
14801480
#else
1481-
struct statfs64 buf;
1481+
struct statfs buf;
14821482

1483-
if(statfs64(path.c_str(),&buf)==-1)
1483+
if(statfs(path.c_str(),&buf)==-1)
14841484
{
14851485
return false;
14861486
}

0 commit comments

Comments
 (0)