From d3b0bda011baa7dbbea3f917ff6ccda473278e00 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 13 Nov 2015 11:03:34 +0300 Subject: [PATCH] Update system.cpp FreeBSD compilation fix --- modules/core/src/system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 12a373bf2..dbe35ebfa 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -64,12 +64,14 @@ Mutex* __initialization_mutex_initializer = &getInitializationMutex(); # endif #endif -#if defined ANDROID || defined __linux__ +#if defined ANDROID || defined __linux__ || defined __FreeBSD__ # include # include # include +#if defined ANDROID || defined __linux__ # include #endif +#endif #if defined WIN32 || defined _WIN32 || defined WINCE #ifndef _WIN32_WINNT // This is needed for the declaration of TryEnterCriticalSection in winbase.h with Visual Studio 2005 (and older?)