version 1.23 | | version 1.24 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.23 2001/12/31 08:36:04 mwedel Exp $"; | | * "$Id: init.c,v 1.24 2002/05/19 03:55:48 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
ns->ext2 = 0; | | ns->ext2 = 0; |
ns->ext_title_flag = 1; | | ns->ext_title_flag = 1; |
ns->skillexp = 0; | | ns->skillexp = 0; |
ns->map1cmd = 0; | | ns->mapmode = Map0Cmd; |
ns->map2cmd = 0; | | |
ns->darkness = 1; | | ns->darkness = 1; |
ns->newanim = 0; | | ns->newanim = 0; |
ns->status = Ns_Add; | | ns->status = Ns_Add; |
| | |
defined(__sun__) || defined(linux) || defined(SVR4) || defined(__FreeBSD__) || \ | | defined(__sun__) || defined(linux) || defined(SVR4) || defined(__FreeBSD__) || \ |
defined(__OpenBSD__) || defined(WIN32) /* ---win32 add this here */ | | defined(__OpenBSD__) || defined(WIN32) /* ---win32 add this here */ |
{ | | { |
char tmp =1; | | int tmp =1; |
| | |
if(setsockopt(init_sockets[0].fd,SOL_SOCKET,SO_REUSEADDR, &tmp, sizeof(&tmp))) { | | if(setsockopt(init_sockets[0].fd,SOL_SOCKET,SO_REUSEADDR, &tmp, sizeof(tmp))) { |
perror("error on setsockopt REUSEADDR"); | | perror("error on setsockopt REUSEADDR"); |
LOG(llevError,"error on setsockopt REUSEADDR\n"); | | LOG(llevError,"error on setsockopt REUSEADDR\n"); |
} | | } |