A few more fixes to the dlsym() fix.
authorKristian Høgsberg <krh@redhat.com>
Tue, 26 Feb 2008 03:24:09 +0000 (22:24 -0500)
committerKristian Høgsberg <krh@redhat.com>
Tue, 26 Feb 2008 03:24:09 +0000 (22:24 -0500)
Argh, seriously, I did test that, I just forgot to amend the commit
before pushing.

src/mesa/drivers/dri/common/dri_util.c

index fa07ab0e56d771b091f0884e33b3b59659e16094..8e9f9167cae285a3fece4b691cfaab6565415bce 100644 (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)