mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Apply/replicate patches from OpenBSD to dlopen .so names.
git-svn-id: https://svn.eduke32.com/eduke32@4545 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c1701f9299
commit
1f68d2beb6
2 changed files with 12 additions and 1 deletions
|
@ -17,10 +17,17 @@ int32_t dynamicgtk_init(void)
|
|||
{
|
||||
int32_t err = 0;
|
||||
const char *failsym = NULL;
|
||||
const char *gtk_shared_object;
|
||||
|
||||
if (handle) return 1;
|
||||
|
||||
handle = dlopen("libgtk-x11-2.0.so.0", RTLD_NOW|RTLD_GLOBAL);
|
||||
#if defined __OpenBSD__
|
||||
gtk_shared_object = "libgtk-x11-2.0.so";
|
||||
#else
|
||||
gtk_shared_object = "libgtk-x11-2.0.so.0";
|
||||
#endif
|
||||
|
||||
handle = dlopen(gtk_shared_object, RTLD_NOW|RTLD_GLOBAL);
|
||||
if (!handle) return -1;
|
||||
|
||||
memset(&dynamicgtksyms, 0, sizeof(dynamicgtksyms));
|
||||
|
|
|
@ -350,6 +350,8 @@ int32_t loadgldriver(const char *driver)
|
|||
driver = "opengl32.dll";
|
||||
#elif defined __APPLE__
|
||||
driver = "/System/Library/Frameworks/OpenGL.framework/OpenGL";
|
||||
#elif defined __OpenBSD__
|
||||
driver = "libGL.so";
|
||||
#else
|
||||
driver = "libGL.so.1";
|
||||
#endif
|
||||
|
@ -962,6 +964,8 @@ int32_t loadglulibrary(const char *driver)
|
|||
driver = "glu32.dll";
|
||||
#elif defined __APPLE__
|
||||
driver = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; // FIXME: like I know anything about Apple. Hah.
|
||||
#elif defined __OpenBSD__
|
||||
driver = "libGLU.so";
|
||||
#else
|
||||
driver = "libGLU.so.1";
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue