$OpenBSD: patch-src_ipelib_ipeplatform_cpp,v 1.4 2020/01/18 21:00:14 sthen Exp $

Index: src/ipelib/ipeplatform.cpp
--- src/ipelib/ipeplatform.cpp.orig
+++ src/ipelib/ipeplatform.cpp
@@ -49,6 +49,10 @@
 #include <sys/errno.h>
 #endif
 
+#ifdef __OpenBSD__
+#include <errno.h>
+#endif
+
 #include <cstdlib>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -657,6 +661,8 @@ double Platform::toDouble(String s)
     return _strtod_l(s.z(), nullptr, ipeLocale);
   else
     return strtod(s.z(), nullptr);
+#elif defined(__OpenBSD__)
+  return strtod(s.z(), nullptr);
 #else
   return strtod_l(s.z(), nullptr, ipeLocale);
 #endif
@@ -675,6 +681,8 @@ int Platform::toNumber(String s, int &iValue, double &
     dValue = _strtod_l(s.z(), &fin, ipeLocale);
   else
     dValue = strtod(s.z(), &fin);
+#elif defined(__OpenBSD__)
+  dValue = strtod(s.z(), &fin);
 #else
   dValue = strtod_l(s.z(), &fin, ipeLocale);
 #endif
