mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Use manifest constant CLOCKS_PER_SEC instead of sysconf(_SC_CLK_TCK).
This commit is contained in:
parent
ac72a2621c
commit
238ae5d91f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1096
@ -1 +1 @@
|
||||
MD5 (Mesa-1.0beta.tar.Z) = 4b4ecf8c1cdd2556e9d059b9c6f883bb
|
||||
MD5 (Mesa-1.1beta.tar.Z) = e19ba153f955fd0818dcb3adc40febde
|
||||
|
@ -1,13 +1,26 @@
|
||||
*** samples/speed.c.0 Fri Jan 27 18:41:09 1995
|
||||
--- samples/speed.c Sun Feb 5 15:43:42 1995
|
||||
*** samples/speed.c.0 Fri Mar 3 16:38:42 1995
|
||||
--- samples/speed.c Sun Mar 5 18:59:23 1995
|
||||
***************
|
||||
*** 35,40 ****
|
||||
--- 35,44 ----
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
+ #ifdef __STDC__
|
||||
+ #include <time.h>
|
||||
+ #endif
|
||||
+
|
||||
|
||||
#define GAP 10
|
||||
#define ROWS 1
|
||||
***************
|
||||
*** 122,128 ****
|
||||
--- 122,132 ----
|
||||
--- 126,136 ----
|
||||
clock_t clk;
|
||||
|
||||
clk = times(&tm);
|
||||
+ #ifdef __FreeBSD__
|
||||
+ return (double) clk / (double) sysconf(_SC_CLK_TCK);
|
||||
+ #ifdef __STDC__
|
||||
+ return (double)clk / (double)CLOCKS_PER_SEC;
|
||||
+ #else
|
||||
return (double)clk / (double)HZ;
|
||||
+ #endif
|
||||
|
@ -1 +1 @@
|
||||
MD5 (Mesa-1.0beta.tar.Z) = 4b4ecf8c1cdd2556e9d059b9c6f883bb
|
||||
MD5 (Mesa-1.1beta.tar.Z) = e19ba153f955fd0818dcb3adc40febde
|
||||
|
@ -1,13 +1,26 @@
|
||||
*** samples/speed.c.0 Fri Jan 27 18:41:09 1995
|
||||
--- samples/speed.c Sun Feb 5 15:43:42 1995
|
||||
*** samples/speed.c.0 Fri Mar 3 16:38:42 1995
|
||||
--- samples/speed.c Sun Mar 5 18:59:23 1995
|
||||
***************
|
||||
*** 35,40 ****
|
||||
--- 35,44 ----
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
+ #ifdef __STDC__
|
||||
+ #include <time.h>
|
||||
+ #endif
|
||||
+
|
||||
|
||||
#define GAP 10
|
||||
#define ROWS 1
|
||||
***************
|
||||
*** 122,128 ****
|
||||
--- 122,132 ----
|
||||
--- 126,136 ----
|
||||
clock_t clk;
|
||||
|
||||
clk = times(&tm);
|
||||
+ #ifdef __FreeBSD__
|
||||
+ return (double) clk / (double) sysconf(_SC_CLK_TCK);
|
||||
+ #ifdef __STDC__
|
||||
+ return (double)clk / (double)CLOCKS_PER_SEC;
|
||||
+ #else
|
||||
return (double)clk / (double)HZ;
|
||||
+ #endif
|
||||
|
Loading…
Reference in New Issue
Block a user