mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add a workaround for strerror_r() libpq for FreeBSD (for clang-15)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
38c0b0ee50
commit
3c47d5bbff
@ -66,7 +66,7 @@ target_include_directories (_libpq SYSTEM PRIVATE "${LIBPQ_SOURCE_DIR}/configs")
|
|||||||
# NOTE: this is a dirty hack to avoid and instead pg_config.h should be shipped
|
# NOTE: this is a dirty hack to avoid and instead pg_config.h should be shipped
|
||||||
# for different OS'es like for jemalloc, not one generic for all OS'es like
|
# for different OS'es like for jemalloc, not one generic for all OS'es like
|
||||||
# now.
|
# now.
|
||||||
if (OS_DARWIN OR USE_MUSL)
|
if (OS_DARWIN OR OS_FREEBSD OR USE_MUSL)
|
||||||
target_compile_definitions(_libpq PRIVATE -DSTRERROR_R_INT=1)
|
target_compile_definitions(_libpq PRIVATE -DSTRERROR_R_INT=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user