aboutsummaryrefslogtreecommitdiff
path: root/math/emc2
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-08-24 11:44:10 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-08-24 11:44:10 +0000
commit3d942bb30149b4149dacc3068e5c0faff3661383 (patch)
tree3c532c48becc0dc4d3d81de3b8a0520a1a6904f2 /math/emc2
parenta769dcb63e2dcedecce5a4ae58dac89ff9773efa (diff)
downloadports-3d942bb30149b4149dacc3068e5c0faff3661383.tar.gz
ports-3d942bb30149b4149dacc3068e5c0faff3661383.zip
Fix build with clang
Notes
Notes: svn path=/head/; revision=303077
Diffstat (limited to 'math/emc2')
-rw-r--r--math/emc2/files/patch-libemc2_4.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/emc2/files/patch-libemc2_4.c b/math/emc2/files/patch-libemc2_4.c
new file mode 100644
index 000000000000..2e574a4cea0e
--- /dev/null
+++ b/math/emc2/files/patch-libemc2_4.c
@@ -0,0 +1,11 @@
+--- ./libemc2_4.c.orig 1999-11-09 15:58:26.000000000 +0100
++++ ./libemc2_4.c 2012-08-24 13:40:38.364914711 +0200
+@@ -2019,7 +2019,7 @@
+ libre = alloc_();
+ cdesig_1.adr = libre;
+ if (cdesig_1.adr == 0) {
+- return ;
++ return 0;
+ }
+ /* Computing MAX */
+ r__1 = dabs(res[1]), r__2 = dabs(res[2]), r__1 = max(r__1,r__2), r__2