From: Kristian Høgsberg Date: Tue, 26 Feb 2008 03:24:09 +0000 (-0500) Subject: A few more fixes to the dlsym() fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1c82bf9a4d248389ea5a558575e566d17dbd9d8;p=mesa.git A few more fixes to the dlsym() fix. Argh, seriously, I did test that, I just forgot to amend the commit before pushing. --- 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 #include #include +#include #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)