summaryrefslogtreecommitdiff
path: root/math/p5-NetCDF/files/patch-perl-NetCDF.xs
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2009-09-26 15:11:38 +0000
committerRong-En Fan <rafan@FreeBSD.org>2009-09-26 15:11:38 +0000
commit18581ecd5684392ca58f1fe36e3547048e081c54 (patch)
tree3e44d7450523cea9f0a1ac3cabe04637d1c3990c /math/p5-NetCDF/files/patch-perl-NetCDF.xs
parent- Update to 0.9.8 (diff)
- Update science/netcdf4 to 4.0.1
- Bump PORTREVISION for dependent ports PR: ports/136377 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> (maintainer) Feature safe: yes
Notes
Notes: svn path=/head/; revision=242144
Diffstat (limited to 'math/p5-NetCDF/files/patch-perl-NetCDF.xs')
-rw-r--r--math/p5-NetCDF/files/patch-perl-NetCDF.xs13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/p5-NetCDF/files/patch-perl-NetCDF.xs b/math/p5-NetCDF/files/patch-perl-NetCDF.xs
new file mode 100644
index 000000000000..c3fd58c8c600
--- /dev/null
+++ b/math/p5-NetCDF/files/patch-perl-NetCDF.xs
@@ -0,0 +1,13 @@
+--- perl/NetCDF.xs.orig 2003-01-10 00:09:14.000000000 +0800
++++ perl/NetCDF.xs 2009-09-26 06:10:36.000000000 +0800
+@@ -23,6 +23,10 @@
+ #include <assert.h>
+ #include "netcdf.h"
+
++#if !defined(MAX_NC_OPEN)
++#define MAX_NC_OPEN sysconf(_SC_OPEN_MAX)
++#endif
++
+ /*
+ * Macro for setting a scalar value either directly or through a reference:
+ */