summaryrefslogtreecommitdiff
path: root/geography/geos/patches/patch-util_geosop_cxxopts.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'geography/geos/patches/patch-util_geosop_cxxopts.hpp')
-rw-r--r--geography/geos/patches/patch-util_geosop_cxxopts.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/geography/geos/patches/patch-util_geosop_cxxopts.hpp b/geography/geos/patches/patch-util_geosop_cxxopts.hpp
new file mode 100644
index 00000000000..f006623407a
--- /dev/null
+++ b/geography/geos/patches/patch-util_geosop_cxxopts.hpp
@@ -0,0 +1,22 @@
+$NetBSD: patch-util_geosop_cxxopts.hpp,v 1.1 2022/03/27 13:33:21 tnn Exp $
+
+On at least modern SunOS, int8_t is typedef'd to char, so parse_value()
+that operates on int8_t& conflicts with the one that operates on char&.
+
+--- util/geosop/cxxopts.hpp.orig 2022-01-15 21:14:55.000000000 +0000
++++ util/geosop/cxxopts.hpp
+@@ -677,12 +677,14 @@ namespace cxxopts
+ integer_parser(text, value);
+ }
+
++#if !defined(__sun)
+ inline
+ void
+ parse_value(const std::string& text, int8_t& value)
+ {
+ integer_parser(text, value);
+ }
++#endif
+
+ inline
+ void