22 lines
528 B
Text
22 lines
528 B
Text
Index: src/ipelib/ipeplatform.cpp
|
|
--- src/ipelib/ipeplatform.cpp.orig
|
|
+++ src/ipelib/ipeplatform.cpp
|
|
@@ -49,6 +49,9 @@
|
|
#include <sys/param.h>
|
|
#include <sys/errno.h>
|
|
#endif
|
|
+#ifdef __OpenBSD__
|
|
+#include <errno.h>
|
|
+#endif
|
|
|
|
#ifdef IPE_GSL
|
|
#include <gsl/gsl_errno.h>
|
|
@@ -671,6 +674,8 @@ static double ipestrtod(const char *s, char ** fin)
|
|
return p_strtod_l(s, fin, ipeLocale);
|
|
else
|
|
return strtod(s, fin);
|
|
+#elif defined(__OpenBSD__)
|
|
+ return strtod(s, fin);
|
|
#else
|
|
return strtod_l(s, fin, ipeLocale);
|
|
#endif
|