aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2013-06-13 04:03:25 +0800
committerthierry <thierry@FreeBSD.org>2013-06-13 04:03:25 +0800
commitb63e21094a5f39e6179d4bb6b06ec73bba48fbfa (patch)
tree48cfcb2035db29b79f0aa483e0e92a341c423ab9
parentc3b90b93c9fcb0658cc4baca58ed3d14ebf37b4c (diff)
downloadfreebsd-ports-gnome-b63e21094a5f39e6179d4bb6b06ec73bba48fbfa.tar.gz
freebsd-ports-gnome-b63e21094a5f39e6179d4bb6b06ec73bba48fbfa.tar.zst
freebsd-ports-gnome-b63e21094a5f39e6179d4bb6b06ec73bba48fbfa.zip
Fix build with clang.
-rw-r--r--science/medit/files/patch-sources_ellipse.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/science/medit/files/patch-sources_ellipse.c b/science/medit/files/patch-sources_ellipse.c
new file mode 100644
index 000000000000..d1f8e4905955
--- /dev/null
+++ b/science/medit/files/patch-sources_ellipse.c
@@ -0,0 +1,20 @@
+--- sources/ellipse.c.orig 2012-02-04 12:58:25.000000000 +0100
++++ sources/ellipse.c 2013-06-12 19:41:30.000000000 +0200
+@@ -278,7 +278,7 @@
+ m[0] = ps->m[0];
+ m[1] = ps->m[1];
+ m[2] = ps->m[2];
+- if ( !eigen2(m,lambda,vp) ) return;
++ if ( !eigen2(m,lambda,vp) ) return(0);
+
+ /* consider eigenvalues as sizes */
+ dd1 = 1.0 / sqrt(fabs(lambda[0]));
+@@ -306,7 +306,7 @@
+ m[0] = ps->m[0];
+ m[1] = ps->m[1];
+ m[2] = ps->m[2];
+- if ( !eigen2(m,lambda,vp) ) return;
++ if ( !eigen2(m,lambda,vp) ) return(0);
+
+ /* consider eigenvalues as sizes */
+ dd1 = 1.0 / sqrt(fabs(lambda[0]));