summaryrefslogtreecommitdiff
path: root/games/battalion/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'games/battalion/patches/patch-ac')
-rw-r--r--games/battalion/patches/patch-ac30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/battalion/patches/patch-ac b/games/battalion/patches/patch-ac
new file mode 100644
index 00000000000..a7bc3d5d513
--- /dev/null
+++ b/games/battalion/patches/patch-ac
@@ -0,0 +1,30 @@
+$NetBSD: patch-ac,v 1.1 2006/04/28 14:58:32 joerg Exp $
+
+--- net.c.orig 2006-04-28 14:49:37.000000000 +0000
++++ net.c
+@@ -22,6 +22,7 @@
+ * ocassionally wehn switching from demo to game mode the screen goes
+ * black and everything stops
+ */
++#include <errno.h>
+ #include "battalion.h"
+
+ /*****************/
+@@ -627,9 +628,6 @@ void processClient(time_t now, int mainC
+ int j;
+ int frameNum;
+
+- extern int errno;
+-
+-
+ /* send a request every once in a while until connection established */
+ /* if I haven't seen any data from the server in a while try to reconnect */
+ /* this may be a bit harsh to say connected = 0 */
+@@ -778,7 +776,6 @@ void processNetwork(time_t now, int main
+ char command[MAXLINE];
+
+ struct targetInfo * tempTarget;
+- extern int errno;
+
+ int clilen;
+ int oldClient;