Use RTLD_DEFAULT, rather than relying on NULL happening to map to it as it

does on Linux.
This commit is contained in:
Eric Anholt 2006-04-02 06:22:05 +00:00
parent 323fec2029
commit 4e3a4cfdd1
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2006-04-01 Eric Anholt <anholt@FreeBSD.org>
reviewed by: keithp
* GL/glx/glxdri.c: (__glXDRIscreenProbe):
Use RTLD_DEFAULT, rather than relying on NULL happening to map to it as
it does on Linux.
2006-04-01 Adam Jackson <ajax@freedesktop.org>
* configure.ac:

View File

@ -724,7 +724,7 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
char filename[128];
Bool isCapable;
if (dlsym (NULL, "DRIQueryDirectRenderingCapable") == NULL) {
if (dlsym (RTLD_DEFAULT, "DRIQueryDirectRenderingCapable") == NULL) {
LogMessage(X_ERROR, "AIGLX: DRI module not loaded\n");
return NULL;
}