Skip to content
Browse files

Date: Wed, 9 May 2001 18:03:20 -0600

From: Peter Valchev <>
Subject: openbsd patches

- The dlsym() one is supposed to fix dynamic loading on our a.out
architectures, where prefixing of an underscore symbol is required.
Actually I don't know what kind of dynamic loading does SDL deal with,
but anyway.  You may want to make that change global, but only gcc's
preprocessor passes __ELF__, I think, so you can just add Linux or
something if you decide so.
  • Loading branch information
Sam Lantinga committed May 10, 2001
1 parent 33bdff7 commit cb8372c37b42550333488d01a5662eec89190ecd
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/x11/SDL_x11gl.c
@@ -343,6 +343,9 @@ int X11_GL_LoadLibrary(_THIS, const char* path)
handle = dlopen(path, dlopen_flags);
/* Catch the case where the application isn't linked with GL */
#if defined __OpenBSD__ && !defined __ELF__
#define dlsym(x,y) dlsym(x, "_" y)
if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) {
path = getenv("SDL_VIDEO_GL_DRIVER");

0 comments on commit cb8372c

Please sign in to comment.