summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-02-16 21:33:18 +0000
committerpav <pav@FreeBSD.org>2005-02-16 21:33:18 +0000
commitd2933e9dc1ce27b17f598620b59c780b4f3f9d8a (patch)
tree574fe0471d8e463fafb7b1ce6b2bd0d6609d6f8f /games
parentc2321a02b251146258cc7cccdde07c492b8bd7da (diff)
downloadFreeBSD-ports-d2933e9dc1ce27b17f598620b59c780b4f3f9d8a.zip
FreeBSD-ports-d2933e9dc1ce27b17f598620b59c780b4f3f9d8a.tar.gz
- Fix runtime on amd64
Diffstat (limited to 'games')
-rw-r--r--games/daimonin-client/files/patch-src-uncompr.c11
-rw-r--r--games/daimonin-client/files/patch-src-wrapper.c20
-rw-r--r--games/daimonin/files/patch-src-uncompr.c11
-rw-r--r--games/daimonin/files/patch-src-wrapper.c20
4 files changed, 62 insertions, 0 deletions
diff --git a/games/daimonin-client/files/patch-src-uncompr.c b/games/daimonin-client/files/patch-src-uncompr.c
new file mode 100644
index 0000000..c1a1243
--- /dev/null
+++ b/games/daimonin-client/files/patch-src-uncompr.c
@@ -0,0 +1,11 @@
+--- ../../src/uncompr.c.orig Sun Nov 30 22:59:30 2003
++++ ../../src/uncompr.c Wed Feb 16 22:11:32 2005
+@@ -39,7 +39,7 @@
+
+ stream.next_out = dest;
+ stream.avail_out = (uInt)*destLen;
+- if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
++ if ((uLong)stream.avail_out != (uInt)*destLen) return Z_BUF_ERROR;
+
+ stream.zalloc = (alloc_func)0;
+ stream.zfree = (free_func)0;
diff --git a/games/daimonin-client/files/patch-src-wrapper.c b/games/daimonin-client/files/patch-src-wrapper.c
new file mode 100644
index 0000000..dc78b4b
--- /dev/null
+++ b/games/daimonin-client/files/patch-src-wrapper.c
@@ -0,0 +1,20 @@
+--- ../../src/wrapper.c.orig Thu Dec 18 22:43:08 2003
++++ ../../src/wrapper.c Wed Feb 16 10:09:17 2005
+@@ -44,13 +44,15 @@
+ }
+ if(!logstream) /* secure: we have no open stream*/
+ flag = FALSE;
+- va_start(ap, format);
+ if(flag)
+ {
++ va_start(ap, format);
+ vfprintf(stdout, format, ap);
++ va_end(ap);
++ va_start(ap, format);
+ vfprintf(logstream, format, ap);
++ va_end(ap);
+ }
+- va_end(ap);
+ fflush(logstream);
+
+ #endif
diff --git a/games/daimonin/files/patch-src-uncompr.c b/games/daimonin/files/patch-src-uncompr.c
new file mode 100644
index 0000000..c1a1243
--- /dev/null
+++ b/games/daimonin/files/patch-src-uncompr.c
@@ -0,0 +1,11 @@
+--- ../../src/uncompr.c.orig Sun Nov 30 22:59:30 2003
++++ ../../src/uncompr.c Wed Feb 16 22:11:32 2005
+@@ -39,7 +39,7 @@
+
+ stream.next_out = dest;
+ stream.avail_out = (uInt)*destLen;
+- if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
++ if ((uLong)stream.avail_out != (uInt)*destLen) return Z_BUF_ERROR;
+
+ stream.zalloc = (alloc_func)0;
+ stream.zfree = (free_func)0;
diff --git a/games/daimonin/files/patch-src-wrapper.c b/games/daimonin/files/patch-src-wrapper.c
new file mode 100644
index 0000000..dc78b4b
--- /dev/null
+++ b/games/daimonin/files/patch-src-wrapper.c
@@ -0,0 +1,20 @@
+--- ../../src/wrapper.c.orig Thu Dec 18 22:43:08 2003
++++ ../../src/wrapper.c Wed Feb 16 10:09:17 2005
+@@ -44,13 +44,15 @@
+ }
+ if(!logstream) /* secure: we have no open stream*/
+ flag = FALSE;
+- va_start(ap, format);
+ if(flag)
+ {
++ va_start(ap, format);
+ vfprintf(stdout, format, ap);
++ va_end(ap);
++ va_start(ap, format);
+ vfprintf(logstream, format, ap);
++ va_end(ap);
+ }
+- va_end(ap);
+ fflush(logstream);
+
+ #endif
OpenPOWER on IntegriCloud