Fix dlopen()'ing libraries on OpenBSD

This commit is contained in:
Brad Smith 2025-11-26 22:26:15 -05:00
parent 883601ea95
commit d243da72e5

View file

@ -18,9 +18,11 @@ Library::Library(const String& name)
String path;
#if defined(_WIN32)
path = name + ".dll";
#elif defined(__APPLE__)
#elif defined(__APPLE__) /* _WIN32 */
path = "lib" + name + "." + Application::GetAppSpecVersion() + ".dylib";
#else /* __APPLE__ */
#elif defined(__OpenBSD__) /* __APPLE__ */
path = "lib" + name + ".so";
#else /* __OpenBSD__ */
path = "lib" + name + ".so." + Application::GetAppSpecVersion();
#endif /* _WIN32 */