fix _SOLO build problem
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 5 Dec 2003 22:35:57 +0000 (22:35 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 5 Dec 2003 22:35:57 +0000 (22:35 +0000)
src/mesa/drivers/dri/sis/sis_screen.c

index a43f2be8c0ea2f76b1a02e1ea4497aeee6af809f..3171be50024e97737f85701ec99c6e8d68164778 100644 (file)
@@ -268,6 +268,7 @@ static struct __DriverAPIRec sisAPI = {
  * The __driCreateScreen name is the symbol that libGL.so fetches.
  * Return:  pointer to a __DRIscreenPrivate.
  */
+#ifndef _SOLO
 void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
                         int numConfigs, __GLXvisualConfig *config)
 {
@@ -275,3 +276,12 @@ void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc,
    psp = __driUtilCreateScreen( dpy, scrn, psc, numConfigs, config, &sisAPI );
    return (void *)psp;
 }
+#else
+void *__driCreateScreen(struct DRIDriverRec *driver,
+                        struct DRIDriverContextRec *driverContext)
+{
+   __DRIscreenPrivate *psp;
+   psp = __driUtilCreateScreen(driver, driverContext, &sisAPI);
+   return (void *) psp;
+}
+#endif