File ps_nv.diff of Package xorg-x11-driver-video

--- src/nv_driver.c	26 Aug 2004 12:08:21 -0000	1.1.1.52
+++ src/nv_driver.c	21 Oct 2004 09:55:47 -0000
@@ -337,5 +337,6 @@
 };
 
-_X_EXPORT XF86ModuleData nvModuleData = { &nvVersRec, nvSetup, NULL };
+_X_EXPORT XF86ModuleData nvModuleData = { &nvVersRec, nvSetup, NULL };
+_X_EXPORT XF86ModuleData nvidiaModuleData = { &nvVersRec, nvSetup, NULL };
 #endif
 
@@ -510,6 +511,8 @@
 
 
     if ((numDevSections = xf86MatchDevice(NV_DRIVER_NAME, &devSections)) <= 0) 
+	if (numDevSections < 0 || (numDevSections
+		  = xf86MatchDevice("nvidia", &devSections)) <= 0) 
         return FALSE;  /* no matching device section */
 
     if (!(ppPci = xf86GetPciVideoInfo())) 
openSUSE Build Service is sponsored by