summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/core/slang-shared-library.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-shared-library.cpp b/source/core/slang-shared-library.cpp
index a67b10a42..1513b420f 100644
--- a/source/core/slang-shared-library.cpp
+++ b/source/core/slang-shared-library.cpp
@@ -8,7 +8,7 @@
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(SLANG_OSX)
#include <dlfcn.h>
#endif
#include <sys/stat.h>
@@ -125,7 +125,7 @@ String SharedLibraryUtils::getSharedLibraryFileName(void* symbolInLib)
}
return String::fromWString(filenameBuffer);
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(SLANG_OSX)
Dl_info dllInfo;
if (!dladdr(symbolInLib, &dllInfo))
{