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:
Azat Khuzhin 2022-09-07 22:04:24 +02:00
parent 38c0b0ee50
commit 3c47d5bbff

View File

@ -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()