aboutsummaryrefslogtreecommitdiffstats
path: root/misc/bidwatcher/files
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-11-19 11:22:05 +0800
committerobrien <obrien@FreeBSD.org>2004-11-19 11:22:05 +0800
commit7f068a1673bb427043db7ff1cc37551e16b2cba8 (patch)
tree0da143100da987726663e939b34e82977da165b3 /misc/bidwatcher/files
parentaac8f2ac4bd5a6df7feff88d5dba79a8835b10bd (diff)
downloadfreebsd-ports-gnome-7f068a1673bb427043db7ff1cc37551e16b2cba8.tar.gz
freebsd-ports-gnome-7f068a1673bb427043db7ff1cc37551e16b2cba8.tar.zst
freebsd-ports-gnome-7f068a1673bb427043db7ff1cc37551e16b2cba8.zip
Allow building on 4.x by working around the lack of strtof(3).
Submitted by: Greg Lewis <glewis@eyesbeyond.com>
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;
+ }
+