lib: msgpack: use linux-atomic workaround only on Linux
@@ -8,6 +8,7 @@ LIST (APPEND msgpackc_SOURCES
# Fluent Bit fix for ARM without __sync calls support
include (CheckCSourceCompiles)
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
check_c_source_compiles("
int main() {
__sync_sub_and_fetch(\"\", 1);
@@ -18,6 +19,7 @@ if(NOT FLB_HAVE_SYNC_SUB)
src/linux-atomic.c
)
endif()
+endif()
LIST (APPEND msgpackc_HEADERS
include/msgpack.h
