aboutsummaryrefslogtreecommitdiff
path: root/math/octave-forge-fits/files
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-23 05:29:56 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-23 05:29:56 +0000
commitaf63e8f42d97be34462e61a7b29e01b627658139 (patch)
treeaf1a14558d3c9fc8b8aa2d5a5237b04995bf1782 /math/octave-forge-fits/files
parent430f6af9d50cf3c7b078fa14fdbbb16dec324e5f (diff)
downloadports-af63e8f42d97be34462e61a7b29e01b627658139.tar.gz
ports-af63e8f42d97be34462e61a7b29e01b627658139.zip
- Add patch to fix build error with math/octave-3.8.0.
Notes
Notes: svn path=/head/; revision=340803
Diffstat (limited to 'math/octave-forge-fits/files')
-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