Menu

#1 compile on Ubuntu 10.04, minor patch

open
nobody
None
5
2013-02-04
2013-02-04
No

to compile I needed to change some files.
Here is the patch, very good code, by the way.

Index: src/HOWTO-linux-debian

RCS file: /cvsroot/fataldimensions/fataldim/src/HOWTO-linux-debian,v
retrieving revision 1.2
diff -u -r1.2 HOWTO-linux-debian
--- src/HOWTO-linux-debian 1 Jul 2006 20:34:40 -0000 1.2
+++ src/HOWTO-linux-debian 4 Feb 2013 10:15:06 -0000
@@ -5,6 +5,7 @@

- install TCL-8.2.3:
apt-get
+ apt-get install tcl-dev
- install zlib (only if you want to use MCCP)
apt-get install zlib1g
apt-get install zlib1g-dev
Index: src/fd_network.c
===================================================================
RCS file: /cvsroot/fataldimensions/fataldim/src/fd_network.c,v
retrieving revision 1.43
diff -u -r1.43 fd_network.c
--- src/fd_network.c 13 May 2009 18:57:29 -0000 1.43
+++ src/fd_network.c 4 Feb 2013 10:15:07 -0000
@@ -44,7 +44,9 @@
#include "rdns_cache.h"
#endif

-
+#if !defined(TELOPT_TN3270E)
+#define TELOPT_TN3270E 40
+#endif
//
// Telnet Options.
//
Index: src/fd_shops.c
===================================================================
RCS file: /cvsroot/fataldimensions/fataldim/src/fd_shops.c,v
retrieving revision 1.37
diff -u -r1.37 fd_shops.c
--- src/fd_shops.c 18 Aug 2010 18:43:22 -0000 1.37
+++ src/fd_shops.c 4 Feb 2013 10:15:07 -0000
@@ -1757,7 +1757,7 @@
int c = 0;
int v1 = obj->value[1]; // max charges
int v2 = obj->value[2]; // charges left
- int depleted = 0;
+ // int depleted = 0;

if ( obj == NULL || ( pShop = keeper->pIndexData->pShop ) == NULL )
return FALSE;
Index: src/playerutil.c
===================================================================
RCS file: /cvsroot/fataldimensions/fataldim/src/playerutil.c,v
retrieving revision 1.9
diff -u -r1.9 playerutil.c
--- src/playerutil.c 2 Dec 2005 19:01:21 -0000 1.9
+++ src/playerutil.c 4 Feb 2013 10:15:07 -0000
@@ -17,12 +17,12 @@
#include <sys/dir.h>
#endif
#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__linux__)
#include <unistd.h>
#endif

typedef char bool;
-typedef short int;
+/* typedef short int; */

#define MAX_STRING_LENGTH 1024
#define MAX_INPUT_LENGTH 1024

Discussion


Log in to post a comment.

MongoDB Logo MongoDB