]> git.pld-linux.org Git - packages/Glide_VG.git/blob - Glide_VG-include.patch
- pass AR to remove 'l' option, which changed meaning
[packages/Glide_VG.git] / Glide_VG-include.patch
1 --- Glide_VG-2.46/swlibs/fxmisc/fxos.c.orig     1999-11-29 20:48:02.000000000 +0100
2 +++ Glide_VG-2.46/swlibs/fxmisc/fxos.c  2013-09-21 13:14:33.118790946 +0200
3 @@ -43,13 +43,22 @@
4  #include <fxos.h>
5  #endif
6  
7 +#if defined ( __sparc__ ) || defined ( __DJGPP__ )
8 +#   include <sys/types.h>
9 +#   include <sys/timeb.h>
10 +#elif defined ( WIN32 ) || ( __DOS__ ) || defined(__FreeBSD__)
11 +#   include <time.h>
12 +#else
13 +#   include <sys/types.h>
14 +#   include <sys/times.h>
15 +#   include <sys/param.h>
16 +#endif
17 +
18  /* return current time in seconds (floating point)      */
19  float fxTime(void)
20  {
21  #if defined ( __sparc__ ) || defined ( __DJGPP__ )
22  /* times returns 0 in BSD Unix, so we use ftime instead */
23 -#   include <sys/types.h>
24 -#   include <sys/timeb.h>
25      struct timeb tb;
26      static time_t once;                 // saves first time value
27  
28 @@ -60,13 +69,9 @@
29      
30  #else
31  #if defined ( WIN32 ) || ( __DOS__ )
32 -#   include <time.h>
33  #   define times(a) clock()
34  #   define HZ   CLOCKS_PER_SEC
35  #else
36 -#   include <sys/types.h>
37 -#   include <sys/times.h>
38 -#   include <sys/param.h>
39      struct tms foo;
40  #endif
41      return times(&foo)/(float)HZ;
This page took 0.113545 seconds and 3 git commands to generate.