aboutsummaryrefslogtreecommitdiffstats
path: root/misc/bidwatcher/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/bidwatcher/files')
-rw-r--r--misc/bidwatcher/files/patch-helpers.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/bidwatcher/files/patch-helpers.cpp b/misc/bidwatcher/files/patch-helpers.cpp
new file mode 100644
index 000000000000..598cb10283cf
--- /dev/null
+++ b/misc/bidwatcher/files/patch-helpers.cpp
@@ -0,0 +1,16 @@
+$FreeBSD$
+
+--- helpers.cpp.orig Sat Oct 30 15:02:55 2004
++++ helpers.cpp Sat Oct 30 15:05:25 2004
+@@ -121,7 +121,11 @@
+ bool strToFloat(const char *str, float &x)
+ {
+ char *end = 0;
++#if defined(__FreeBSD__) && __FreeBSD__ < 5
++ x = (float) strtod(str, &end);
++#else
+ x = strtof(str, &end);
++#endif
+ return end != str && *end == 0;
+ }
+