From 3c47d5bbffbfcac070f316cc9183bab82a9f437e Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 7 Sep 2022 22:04:24 +0200 Subject: [PATCH] Add a workaround for strerror_r() libpq for FreeBSD (for clang-15) Signed-off-by: Azat Khuzhin --- contrib/libpq-cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libpq-cmake/CMakeLists.txt b/contrib/libpq-cmake/CMakeLists.txt index b62186159f3..91326422b43 100644 --- a/contrib/libpq-cmake/CMakeLists.txt +++ b/contrib/libpq-cmake/CMakeLists.txt @@ -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 # for different OS'es like for jemalloc, not one generic for all OS'es like # 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) endif()