[packages/Glide_V5-DRI] - missing patches

qboosh qboosh at pld-linux.org
Tue Sep 24 16:27:30 CEST 2013


commit 3b02ab23392262703f94306b3b3dde3b98c2fc94
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 24 16:28:01 2013 +0200

    - missing patches

 glide-format.patch  | 35 +++++++++++++++++++++++++++++++++++
 glide-include.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
---
diff --git a/glide-format.patch b/glide-format.patch
new file mode 100644
index 0000000..944ce18
--- /dev/null
+++ b/glide-format.patch
@@ -0,0 +1,35 @@
+--- glide3x-20010309/swlibs/fxmisc/fximg.c.orig	2013-09-23 20:58:11.901484168 +0200
++++ glide3x-20010309/swlibs/fxmisc/fximg.c	2013-09-23 21:05:44.205839503 +0200
+@@ -1949,8 +1949,8 @@
+ 	    char buf[1024], *p;
+ 	    strcpy(buf,prefix);			// copy and replace semicolon
+ 	    if ((p = strchr(buf,';')) != NULL) *p = '\0';
+-	    fprintf(stderr,buf);
+-	    fprintf(stderr,"/");
++	    fputs(buf,stderr);
++	    fputs("/",stderr);
+ 	}
+ 	fprintf (stderr,"%s (%ldx%ld) ...", filename, info->any.width,info->any.height);
+ 	fflush(stderr);
+--- glide3x-20010309/swlibs/newpci/pcilib/fxlinux.c.orig	2013-09-23 21:11:16.631291071 +0200
++++ glide3x-20010309/swlibs/newpci/pcilib/fxlinux.c	2013-09-23 21:15:00.308354535 +0200
+@@ -184,7 +184,7 @@
+ static FxBool 
+ pciOutputStringLinux(const char *msg) 
+ {
+-  printf(msg);
++  fputs(msg,stdout);
+   return FXTRUE;
+ }
+ 
+--- glide3x-20010309/swlibs/texus2/lib/eigen.c.orig	2000-08-03 02:27:18.000000000 +0200
++++ glide3x-20010309/swlibs/texus2/lib/eigen.c	2013-09-23 21:16:20.665422963 +0200
+@@ -409,7 +409,7 @@
+     int i;
+ 
+     if (title) {
+-        fprintf(stdout, title);
++        fputs(title, stdout);
+     }
+ 
+     if (input) {
diff --git a/glide-include.patch b/glide-include.patch
new file mode 100644
index 0000000..70359b3
--- /dev/null
+++ b/glide-include.patch
@@ -0,0 +1,40 @@
+--- glide3x-20010309/swlibs/fxmisc/fxos.c.orig	2013-09-23 21:06:22.480951884 +0200
++++ glide3x-20010309/swlibs/fxmisc/fxos.c	2013-09-23 21:10:39.596235960 +0200
+@@ -43,13 +43,21 @@
+ #include <fxos.h>
+ #endif
+ #if !macintosh
++#if defined ( __sparc__ ) || defined ( __DJGPP__ )
++#   include <sys/types.h>
++#   include <sys/timeb.h>
++#elif defined ( WIN32 ) || ( __DOS__ )
++#   include <time.h>
++#else
++#   include <sys/types.h>
++#   include <sys/times.h>
++#   include <sys/param.h>
++#endif
+ /* return current time in seconds (floating point)      */
+ float fxTime(void)
+ {
+ #if defined ( __sparc__ ) || defined ( __DJGPP__ )
+ /* times returns 0 in BSD Unix, so we use ftime instead */
+-#   include <sys/types.h>
+-#   include <sys/timeb.h>
+     struct timeb tb;
+     static time_t once;                 // saves first time value
+ 
+@@ -60,13 +68,9 @@
+     
+ #else
+ #if defined ( WIN32 ) || ( __DOS__ )
+-#   include <time.h>
+ #   define times(a) clock()
+ #   define HZ   CLOCKS_PER_SEC
+ #else
+-#   include <sys/types.h>
+-#   include <sys/times.h>
+-#   include <sys/param.h>
+     struct tms foo;
+ #endif
+     return times(&foo)/(float)HZ;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Glide_V5-DRI.git/commitdiff/3b02ab23392262703f94306b3b3dde3b98c2fc94



More information about the pld-cvs-commit mailing list