aboutsummaryrefslogtreecommitdiff
path: root/graphics/mesagl/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/mesagl/files/patch-aa')
-rw-r--r--graphics/mesagl/files/patch-aa16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/mesagl/files/patch-aa b/graphics/mesagl/files/patch-aa
new file mode 100644
index 000000000000..1b4d82812778
--- /dev/null
+++ b/graphics/mesagl/files/patch-aa
@@ -0,0 +1,16 @@
+*** samples/speed.c.0 Fri Jan 27 18:41:09 1995
+--- samples/speed.c Sun Feb 5 15:43:42 1995
+***************
+*** 122,128 ****
+--- 122,132 ----
+ clock_t clk;
+
+ clk = times(&tm);
++ #ifdef __FreeBSD__
++ return (double) clk / (double) sysconf(_SC_CLK_TCK);
++ #else
+ return (double)clk / (double)HZ;
++ #endif
+ #else
+ return 0;
+ #endif