aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2014-01-23 13:29:56 +0800
committerstephen <stephen@FreeBSD.org>2014-01-23 13:29:56 +0800
commit91911be281faddf3d761998a420e0c937340b9a5 (patch)
treeaf1a14558d3c9fc8b8aa2d5a5237b04995bf1782 /math
parent2c55fbf19917eae0411342d3dfa7b05582074c75 (diff)
downloadfreebsd-ports-gnome-91911be281faddf3d761998a420e0c937340b9a5.tar.gz
freebsd-ports-gnome-91911be281faddf3d761998a420e0c937340b9a5.tar.zst
freebsd-ports-gnome-91911be281faddf3d761998a420e0c937340b9a5.zip
- Add patch to fix build error with math/octave-3.8.0.
Diffstat (limited to 'math')
-rw-r--r--math/octave-forge-fits/files/patch-read_fits_image.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/octave-forge-fits/files/patch-read_fits_image.cc b/math/octave-forge-fits/files/patch-read_fits_image.cc
new file mode 100644
index 000000000000..69bce08ebc26
--- /dev/null
+++ b/math/octave-forge-fits/files/patch-read_fits_image.cc
@@ -0,0 +1,11 @@
+--- read_fits_image.cc-orig 2014-01-23 05:25:08.000000000 +0000
++++ read_fits_image.cc 2014-01-23 05:25:45.000000000 +0000
+@@ -136,7 +136,7 @@
+ }
+ //std::cerr << "read_sz: " << read_sz << std::endl;
+
+- #if OCTAVE_API_VERSION_NUMBER >= 45
++ #if OCTAVE_API_VERSION_NUMBER >= 45 || !defined(OCTAVE_API_VERSION_NUMBER)
+ MArray<double> image_data( dims ); // a octace double-type array
+ #else
+ MArrayN<double> image_data( dims ); // a octave double-type array