summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2008-02-25 22:24:09 -0500
committerKristian Høgsberg <[email protected]>2008-02-25 22:24:09 -0500
commitf1c82bf9a4d248389ea5a558575e566d17dbd9d8 (patch)
treeb408724ca630541ef134006a4023d1ca4484b56b /src/mesa
parent0a64ffb308bbe17fb67aad2829ff36044c9eab47 (diff)
A few more fixes to the dlsym() fix.
Argh, seriously, I did test that, I just forgot to amend the commit before pushing.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index fa07ab0e56d..8e9f9167cae 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -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)