summaryrefslogtreecommitdiff
path: root/games/freeciv-share/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeciv-share/patches/patch-ac')
-rw-r--r--games/freeciv-share/patches/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/freeciv-share/patches/patch-ac b/games/freeciv-share/patches/patch-ac
new file mode 100644
index 00000000000..24554217d51
--- /dev/null
+++ b/games/freeciv-share/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2006/07/15 20:05:18 rillig Exp $
+
+SunPro treats incompatible types in the ?: operator as error.
+
+--- client/helpdata.c.orig 2005-10-13 09:45:45.000000000 +0200
++++ client/helpdata.c 2006-07-15 21:58:31.317408915 +0200
+@@ -553,10 +553,10 @@ char *helptext_building(char *buf, size_
+
+ #define req_append(s) \
+ (req_buf[0] != '\0' \
+- ? my_snprintf(req_buf + strlen(req_buf), \
++ ? (void)my_snprintf(req_buf + strlen(req_buf), \
+ sizeof(req_buf) - strlen(req_buf), \
+ ", %s", (s)) \
+- : sz_strlcpy(req_buf, (s)))
++ : (void)sz_strlcpy(req_buf, (s)))
+
+ if (b->tech_req != A_NONE) {
+ req_append(get_tech_name(game.player_ptr, b->tech_req));