mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Merge pull request #10640 from brad0/openbsd_dlopen
Fix dlopen()'ing libraries on OpenBSD
This commit is contained in:
commit
8c230df3da
1 changed files with 4 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue