--- lib/CMakeLists.txt.orig	2026-08-13 14:13:18 UTC
+++ lib/CMakeLists.txt
@@ -913,6 +913,12 @@ endif()
 	endif()
 endif()
 
+if(BSD)
+	set_source_files_properties(CConsoleHandler.cpp CRandomGenerator.cpp
+		PROPERTIES
+		COMPILE_FLAGS -DBOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED)
+endif(BSD)
+
 # Use '-Wa,-mbig-obj' for files that generate very large object files
 # when compiling with MinGW lest you get "too many sections" assembler errors
 if(MINGW AND CMAKE_BUILD_TYPE STREQUAL "Debug")
