mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Compatibility with Musl in HDFS and RocksDB
This commit is contained in:
parent
043e9239d6
commit
6effb1311f
@ -26,6 +26,11 @@ ADD_DEFINITIONS(-D__STDC_FORMAT_MACROS)
|
|||||||
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
||||||
ADD_DEFINITIONS(-D_GLIBCXX_USE_NANOSLEEP)
|
ADD_DEFINITIONS(-D_GLIBCXX_USE_NANOSLEEP)
|
||||||
ADD_DEFINITIONS(-DHAVE_NANOSLEEP)
|
ADD_DEFINITIONS(-DHAVE_NANOSLEEP)
|
||||||
|
|
||||||
|
if (USE_MUSL)
|
||||||
|
ADD_DEFINITIONS(-DSTRERROR_R_RETURN_INT)
|
||||||
|
endif ()
|
||||||
|
|
||||||
set(HAVE_STEADY_CLOCK 1)
|
set(HAVE_STEADY_CLOCK 1)
|
||||||
set(HAVE_NESTED_EXCEPTION 1)
|
set(HAVE_NESTED_EXCEPTION 1)
|
||||||
SET(HAVE_BOOST_CHRONO 0)
|
SET(HAVE_BOOST_CHRONO 0)
|
||||||
|
@ -117,7 +117,7 @@ endif()
|
|||||||
|
|
||||||
add_definitions(-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX)
|
add_definitions(-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX)
|
||||||
|
|
||||||
if (OS_LINUX OR OS_FREEBSD)
|
if ((OS_LINUX OR OS_FREEBSD) AND NOT USE_MUSL)
|
||||||
add_definitions(-DROCKSDB_PTHREAD_ADAPTIVE_MUTEX)
|
add_definitions(-DROCKSDB_PTHREAD_ADAPTIVE_MUTEX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user