summaryrefslogtreecommitdiff
path: root/games/uclient/files/patch-aa
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2001-04-05 19:30:09 +0000
committerAlexander Langer <alex@FreeBSD.org>2001-04-05 19:30:09 +0000
commitd1155408ad3ad341ebd82f509476e4bf77c21a93 (patch)
treeb088201ea88a5ef366fb0bfbb5717f7c84381ac1 /games/uclient/files/patch-aa
parentTweak for the qtgl problem regarding libc_r some people are seeing. (diff)
Add uclient 0.10.0, a 2D isometric WorldForge game client.
PR: 26251 Submitted by: Oliver Lehmann <lehmann@ans-netz.de>
Notes
Notes: svn path=/head/; revision=40913
Diffstat (limited to 'games/uclient/files/patch-aa')
-rw-r--r--games/uclient/files/patch-aa29
1 files changed, 29 insertions, 0 deletions
diff --git a/games/uclient/files/patch-aa b/games/uclient/files/patch-aa
new file mode 100644
index 000000000000..285fca7c0894
--- /dev/null
+++ b/games/uclient/files/patch-aa
@@ -0,0 +1,29 @@
+--- toolbox/ftos.cc.orig Wed Mar 28 02:14:23 2001
++++ toolbox/ftos.cc Wed Mar 28 02:19:29 2001
+@@ -169,6 +169,10 @@
+ // ecvt (double val, size_t ndigit, int *decpt, int *sign);
+ // }
+
++#ifdef __FreeBSD__
++#include <stdio.h>
++#endif
++
+ #include "ftos.h"
+ #include "dtags.h"
+
+@@ -288,7 +292,14 @@
+ // Get number's string rep, sign, and exponent
+ int sign = 0;
+ int decimal=0;
+- register char *p = ecvt(val, count, &decimal, &sign);
++
++#ifdef __FreeBSD__
++ register char *p;
++ asprintf(&p, "%.0f", val);
++#else
++ register char *p = ecvt(val, count, &decimal, &sign);
++#endif
++// register char *p = ecvt(val, count, &decimal, &sign);
+
+ D2TAG("*** string rep is", p);
+ D2TAG("*** decimal is", itos(decimal));