pkgsrc/games/battalion/patches/patch-ac
2006-04-28 14:58:32 +00:00

30 lines
845 B
Text

$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;