aboutsummaryrefslogtreecommitdiffstats
path: root/science/netcdf4/files
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-02-06 22:16:24 +0800
committerkrion <krion@FreeBSD.org>2004-02-06 22:16:24 +0800
commitae42be8e85f1e229795d180db8008302aea7a722 (patch)
tree1129e0dec77060bca48e23342682a2f09ea64e99 /science/netcdf4/files
parentb54a9ec460af706d2f5910849986316673c2f57e (diff)
downloadfreebsd-ports-gnome-ae42be8e85f1e229795d180db8008302aea7a722.tar.gz
freebsd-ports-gnome-ae42be8e85f1e229795d180db8008302aea7a722.tar.zst
freebsd-ports-gnome-ae42be8e85f1e229795d180db8008302aea7a722.zip
- Fix build on -current
PR: ports/62431 Submitted by: Ports Fury
Diffstat (limited to 'science/netcdf4/files')
-rw-r--r--science/netcdf4/files/patch-ncvalues.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/science/netcdf4/files/patch-ncvalues.h b/science/netcdf4/files/patch-ncvalues.h
new file mode 100644
index 000000000000..1988e2b8746d
--- /dev/null
+++ b/science/netcdf4/files/patch-ncvalues.h
@@ -0,0 +1,20 @@
+--- cxx/ncvalues.h.orig Thu Oct 29 02:10:16 1998
++++ cxx/ncvalues.h Thu Feb 5 20:51:02 2004
+@@ -14,7 +14,7 @@
+ #ifdef STRSTREAM_H_SPEC
+ # include STRSTREAM_H_SPEC
+ #else
+-# include <strstream.h>
++# include <strstream>
+ #endif
+ #include <limits.h>
+ #include <string.h>
+@@ -220,7 +220,7 @@
+ char* NcVal(TYPE)::as_string( long n ) const \
+ { \
+ char* s = new char[32]; \
+- ostrstream ostr(s, sizeof(s)); \
++ std::ostrstream ostr(s, sizeof(s)); \
+ ostr << the_values[n] << ends; \
+ return s; \
+ }