From e4171816c9c5b62e082183957a1a243c11e05656 Mon Sep 17 00:00:00 2001 From: Alexandre Snarskii Date: Sun, 3 Jan 2021 20:17:28 +0300 Subject: [PATCH 1/2] enable kafka integration on freebsd --- cmake/find/rdkafka.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/find/rdkafka.cmake b/cmake/find/rdkafka.cmake index ac11322f408..26005acc4d4 100644 --- a/cmake/find/rdkafka.cmake +++ b/cmake/find/rdkafka.cmake @@ -1,5 +1,4 @@ -# Freebsd: contrib/cppkafka/include/cppkafka/detail/endianness.h:53:23: error: 'betoh16' was not declared in this scope -if (NOT ARCH_ARM AND NOT OS_FREEBSD AND OPENSSL_FOUND) +if (NOT ARCH_ARM AND OPENSSL_FOUND) option (ENABLE_RDKAFKA "Enable kafka" ${ENABLE_LIBRARIES}) elseif(ENABLE_RDKAFKA AND NOT OPENSSL_FOUND) message (${RECONFIGURE_MESSAGE_LEVEL} "Can't use librdkafka without SSL") From af2fa524366a029793de56f2fa38a6ddc532d1c7 Mon Sep 17 00:00:00 2001 From: Alexandre Snarskii Date: Mon, 11 Jan 2021 13:25:09 +0300 Subject: [PATCH 2/2] fix freebsd build --- contrib/librdkafka-cmake/config.h.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/librdkafka-cmake/config.h.in b/contrib/librdkafka-cmake/config.h.in index c0f2e41fb9e..e5b8ba919cf 100644 --- a/contrib/librdkafka-cmake/config.h.in +++ b/contrib/librdkafka-cmake/config.h.in @@ -83,7 +83,8 @@ #if (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ <= 101400) #define _TTHREAD_EMULATE_TIMESPEC_GET_ #endif - +#elif defined(__FreeBSD__) +#define HAVE_PTHREAD_SETNAME_FREEBSD 1 #else // pthread_setname_gnu #define HAVE_PTHREAD_SETNAME_GNU 1