aboutsummaryrefslogtreecommitdiff
path: root/misc/bidwatcher
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2004-11-19 03:22:05 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2004-11-19 03:22:05 +0000
commite71391078350cee2dbbed2355cf6368909cb4701 (patch)
treec31492ab25e6c246d99dd23f3cd92722c5770334 /misc/bidwatcher
parent45a26872f049fcab3c55cc0bcf72e62890851fe9 (diff)
downloadports-e71391078350cee2dbbed2355cf6368909cb4701.tar.gz
ports-e71391078350cee2dbbed2355cf6368909cb4701.zip
Notes
Diffstat (limited to 'misc/bidwatcher')
-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;
+ }
+