$OpenBSD$ Index: src/dispatch_common.c --- src/dispatch_common.c.orig +++ src/dispatch_common.c @@ -188,6 +188,11 @@ #define GLES1_LIB "libGLES_CM.dll" #define GLES2_LIB "libGLESv2.dll" #define OPENGL_LIB "OPENGL32" +#elif defined(__OpenBSD__) +#define GLX_LIB "libGL.so" +#define EGL_LIB "libEGL.so" +#define GLES1_LIB "libGLESv1_CM.so" +#define GLES2_LIB "libGLESv2.so" #else #define GLVND_GLX_LIB "libGLX.so.1" #define GLX_LIB "libGL.so.1" @@ -306,8 +311,10 @@ get_dlopen_handle(void **handle, const char *lib_name, pthread_mutex_lock(&api.mutex); if (!*handle) { int flags = RTLD_LAZY | RTLD_LOCAL; +#ifndef __OpenBSD__ if (!load) flags |= RTLD_NOLOAD; +#endif *handle = dlopen(lib_name, flags); if (!*handle) {