From b577a77333941d82c767d518d42841ef24557acc Mon Sep 17 00:00:00 2001 From: Volker Schlecht Date: Sun, 7 Jun 2026 13:15:49 +0000 Subject: [PATCH] Fall back to plain strtod(3) on NetBSD and OpenBSD Part-of: --- src/util-strings.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util-strings.h b/src/util-strings.h index 9ee1e459..6186c167 100644 --- a/src/util-strings.h +++ b/src/util-strings.h @@ -297,7 +297,11 @@ safe_atod(const char *str, double *val) return false; errno = 0; +#if !defined(__NetBSD__) && !defined(__OpenBSD__) v = strtod_l(str, &endptr, c_locale); +#else + v = strtod(str, &endptr); +#endif freelocale(c_locale); #else /* No locale support in provided libc, assume it already uses '.' */