aboutsummaryrefslogtreecommitdiffstats
path: root/misc/dartsim/files/patch-dart_common_SharedLibrary.cpp
blob: 22fc55602fe1ce5d6a71f3c3e54c526cfc453d83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- dart/common/SharedLibrary.cpp.orig	2024-06-25 05:13:56 UTC
+++ dart/common/SharedLibrary.cpp
@@ -35,7 +35,7 @@
 #include "dart/common/Console.hpp"
 #include "dart/common/detail/SharedLibraryManager.hpp"
 
-#if DART_OS_LINUX || DART_OS_MACOS
+#if DART_OS_LINUX || DART_OS_FREEBSD || DART_OS_MACOS
 
   #include <dlfcn.h>
   #define DYNLIB_LOAD(a) dlopen(a, RTLD_LAZY | RTLD_GLOBAL)
@@ -139,7 +139,7 @@ std::string SharedLibrary::getLastError() const
 //==============================================================================
 std::string SharedLibrary::getLastError() const
 {
-#if DART_OS_LINUX || DART_OS_MACOS
+#if DART_OS_LINUX || DART_OS_FREEBSD || DART_OS_MACOS
   return std::string(dlerror());
 #elif DART_OS_WINDOWS
   LPTSTR lpMsgBuf;