aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-11-30 23:04:11 +0800
committergahr <gahr@FreeBSD.org>2012-11-30 23:04:11 +0800
commitb496ed71757a2db1e45d6352d25ee8801138815b (patch)
treeb8e4b1588088e4aa948ea16c572e2edbfad5a3fa /math
parent8cf5bd596e5a3588e223c1dc138f5d03ec172bf5 (diff)
downloadfreebsd-ports-gnome-b496ed71757a2db1e45d6352d25ee8801138815b.tar.gz
freebsd-ports-gnome-b496ed71757a2db1e45d6352d25ee8801138815b.tar.zst
freebsd-ports-gnome-b496ed71757a2db1e45d6352d25ee8801138815b.zip
- Fix build with clang
Feature safe: yes
Diffstat (limited to 'math')
-rw-r--r--math/diehard/files/patch-cdomso.c11
-rw-r--r--math/diehard/files/patch-diehard.c9
2 files changed, 20 insertions, 0 deletions
diff --git a/math/diehard/files/patch-cdomso.c b/math/diehard/files/patch-cdomso.c
new file mode 100644
index 000000000000..3b9367e182fa
--- /dev/null
+++ b/math/diehard/files/patch-cdomso.c
@@ -0,0 +1,11 @@
+--- cdomso.c.orig 2012-11-30 16:01:24.000000000 +0100
++++ cdomso.c 2012-11-30 16:02:15.000000000 +0100
+@@ -89,7 +89,7 @@
+ }
+
+
+-real monky_stat(char *filename, char *test, int no_tests)
++void monky_stat(char *filename, char *test, int no_tests)
+ {
+ const real bits_pw=20, mean=pow(2, bits_pw)*exp(-2);
+ const counter dim=pow(2, bits_pw-5);
diff --git a/math/diehard/files/patch-diehard.c b/math/diehard/files/patch-diehard.c
new file mode 100644
index 000000000000..58245a247bc3
--- /dev/null
+++ b/math/diehard/files/patch-diehard.c
@@ -0,0 +1,9 @@
+--- diehard.c.orig 2012-11-30 16:00:43.000000000 +0100
++++ diehard.c 2012-11-30 16:00:59.000000000 +0100
+@@ -153,5 +153,5 @@
+ {
+ diehard();
+
+- return;
++ return 0;
+ }