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 fa07ab0..8e9f916 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)