freebsd-ports/math/p5-NetCDF/files/patch-perl-NetCDF.xs
Rong-En Fan 18581ecd56 - 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
2009-09-26 15:11:38 +00:00

13 lines
344 B
Text

--- 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:
*/