Changeset 1215
- Timestamp:
- 01/28/08 23:24:26 (7 months ago)
- Files:
-
- 1.8.3/branches/devel/CHANGES.183 (modified) (1 diff)
- 1.8.3/branches/devel/src/game.c (modified) (3 diffs)
- 1.8.3/branches/devel/src/mysocket.c (modified) (4 diffs)
- 1.8.3/branches/devel/win32/README.mingw (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/CHANGES.183
r1208 r1215 46 46 * Potential infinite loop in error logging fixed. Reported by Yuriko. 47 47 * Fixes from 1.8.2p9 48 49 48 * Compilation fixes on various platforms. [SW] 50 49 51 50 Version 1.8.3 patchlevel 6 Jan 01, 2008 1.8.3/branches/devel/src/game.c
r1211 r1215 2002 2002 unix_uptime(dbref player __attribute__ ((__unused__))) 2003 2003 { 2004 #ifndef WIN32 2004 2005 #ifdef HAVE_UPTIME 2005 2006 FILE *fp; … … 2010 2011 struct rusage usage; 2011 2012 #endif 2012 #ifndef WIN322013 2013 char tbuf1[BUFFER_LEN]; 2014 #endif2015 2014 pid_t pid; 2016 2015 int psize; … … 2068 2067 notify_format(player, "Signals: %10ld", usage.ru_nsignals); 2069 2068 #endif /* HAS_GETRUSAGE */ 2070 2069 #endif 2071 2070 } 2072 2071 1.8.3/branches/devel/src/mysocket.c
r1138 r1215 15 15 #include <string.h> 16 16 17 #ifdef WIN32 18 #include <windows.h> 19 #include <winsock.h> 20 #endif 21 17 22 #ifdef I_SYS_TYPES 18 23 #include <sys/types.h> … … 66 71 #endif 67 72 68 #if ndef HAVE_H_ERRNO73 #if !defined(HAVE_H_ERRNO) && !defined(WIN32) 69 74 extern int h_errno; 70 75 #endif … … 91 96 #ifdef HAVE_POLL_H 92 97 #include <poll.h> 98 #endif 99 100 #ifdef I_SYS_SELECT 101 #include <sys/select.h> 93 102 #endif 94 103 … … 500 509 } 501 510 #else 502 fd set_t wrs;511 fd_set wrs; 503 512 struct timeval timeout, *to; 504 513 505 514 FD_ZERO(&wrs); 506 515 FD_SET(s, &wrs); 507 timeout.tv_sec s= secs;508 timeout.tv_usec s= 0;516 timeout.tv_sec = secs; 517 timeout.tv_usec = 0; 509 518 if (secs >= 0) 510 519 to = &timeout; 1.8.3/branches/devel/win32/README.mingw
r958 r1215 3 3 by Ervin Hearn III <noltar@korongil.net> 4 4 5 Last update: Sunday, 27 June 20045 Last update: Monday, 28 January 2008 6 6 7 7 A note on install locations: … … 70 70 71 71 72 73 Raevnos has had some success cross-compiling a win32 pennmush on linux 74 using mingw32. Briefly: 75 76 * Install the mingw32 cross compilation tools using your package 77 manager. 78 * Configure like so (The name of the cross-compiler might vary): 79 % CC=i486-mingw32-gcc ./configure --host --without-ssl --without-mysql \ 80 --without-sqlite3 --without-postgresql --without-pcre 81 * Add -lwsock32 to the LIBS= line in Makefile 82 * make update; make netmud 83 * cp src/netmud netmush.exe 84 * Use netmush.exe and the game/ directory on a Windows computer like usual.
