summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Harlow <hythloday@gentoo.org>2003-11-07 08:42:11 +0000
committerJames Harlow <hythloday@gentoo.org>2003-11-07 08:42:11 +0000
commit81d1ff129f625939df484be2348da63f49db9e53 (patch)
tree28df646c111e196f4005636936caad433232b101 /games-strategy/liquidwar/files
parentoops someone forgot me ! (diff)
downloadgentoo-2-81d1ff129f625939df484be2348da63f49db9e53.tar.gz
gentoo-2-81d1ff129f625939df484be2348da63f49db9e53.tar.bz2
gentoo-2-81d1ff129f625939df484be2348da63f49db9e53.zip
patched to fix bug #32839
Diffstat (limited to 'games-strategy/liquidwar/files')
-rw-r--r--games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch b/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch
new file mode 100644
index 000000000000..8ce3938ab357
--- /dev/null
+++ b/games-strategy/liquidwar/files/liquidwar-gcc-3.3-fix.patch
@@ -0,0 +1,37 @@
+--- liquidwar-5.5.9/src/netconf.c 2003-06-14 23:30:42.000000000 +0200
++++ liquidwar-5.5.9-new/src/netconf.c 2003-06-14 23:31:59.000000000 +0200
+@@ -70,27 +70,27 @@
+ /*==================================================================*/
+
+ #define LW_NETCONF_CHECK_RANGE(VAL,MAX) \
+-if (config-> ## VAL < 0) \
++if (config->VAL < 0) \
+ { \
+ result=0; \
+ log_print_str("Error: " #VAL " is "); \
+-log_print_int(config-> ## VAL); \
++log_print_int(config->VAL); \
+ log_println_str(", and should be >= 0"); \
+-config-> ## VAL = 0; \
++config->VAL = 0; \
+ } \
+-if (config-> ## VAL > MAX) \
++if (config->VAL > MAX) \
+ { \
+ result=0; \
+ log_print_str("Error: " #VAL " is > "); \
+-log_print_int(config-> ## VAL); \
++log_print_int(config->VAL); \
+ log_print_str(", and should be <= "); \
+ log_println_int(MAX); \
+-config-> ## VAL = MAX; \
++config->VAL = MAX; \
+ }
+
+ #define LW_NETCONF_PRINT_VALUE(VAL) \
+ log_print_str(#VAL " = "); \
+-log_println_int(config-> ## VAL);
++log_println_int(config->VAL);
+
+ /*==================================================================*/
+ /* types */