openbsd-ports/math/labplot/patches/patch-src_backend_gsl_parser_y
rsadowski 5d4315bc1a Import labplot-2.9.0, OK kn@
LabPlot is a program for two- and three-dimensional graphical presentation of
data sets and functions. LabPlot allows you to work with multiple plots which
each can have multiple graphs. The graphs can be produced from data or from
functions.
2023-01-07 20:37:25 +00:00

16 lines
389 B
Plaintext

Index: src/backend/gsl/parser.y
--- src/backend/gsl/parser.y.orig
+++ src/backend/gsl/parser.y
@@ -355,7 +355,11 @@ int yylex(param *p) {
#endif
double result;
if (locale != NULL) {
+#if defined(__OpenBSD__)
+ result = strtod(s, &remain);
+#else
result = strtod_l(s, &remain, locale);
+#endif
freelocale(locale);
} else // use C locale
result = strtod(s, &remain);