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 '.' */