src/video/x11/SDL_x11gl.c
changeset 26 c447d5b9275d
parent 0 74212992fb08
child 29 a8360daed17d
     1.1 --- a/src/video/x11/SDL_x11gl.c	Thu May 10 20:29:31 2001 +0000
     1.2 +++ b/src/video/x11/SDL_x11gl.c	Thu May 10 20:31:51 2001 +0000
     1.3 @@ -343,6 +343,9 @@
     1.4  #endif
     1.5  	handle = dlopen(path, dlopen_flags);
     1.6  	/* Catch the case where the application isn't linked with GL */
     1.7 +#if defined __OpenBSD__ && !defined __ELF__
     1.8 +#define dlsym(x,y) dlsym(x, "_" y)
     1.9 +#endif
    1.10  	if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) {
    1.11  		dlclose(handle);
    1.12  		path = getenv("SDL_VIDEO_GL_DRIVER");