A few more fixes to the dlsym() fix.

Argh, seriously, I did test that, I just forgot to amend the commit
before pushing.
This commit is contained in:
Kristian Høgsberg 2008-02-25 22:24:09 -05:00
parent 0a64ffb308
commit f1c82bf9a4
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include <unistd.h>
#include <sys/mman.h>
#include <stdio.h>
#include <dlfcn.h>
#ifndef MAP_FAILED
#define MAP_FAILED ((void *)-1)
@ -883,7 +884,7 @@ __DRI2_CREATE_NEW_SCREEN(int scrn, __DRIscreen *psc,
static const __DRIextension *emptyExtensionList[] = { NULL };
dri_interface = interface;
unsigned int *p;
__GLcontextModes *(*initScreen)(__DRIscreen *psc);
__GLcontextModes *(*initScreen)(__DRIscreenPrivate *psc);
initScreen = dlsym(NULL, "__dri2DriverInitScreen");
if (initScreen == NULL)