version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.31 2003/12/02 18:51:44 ryo_saeba Exp $"; | | * "$Id: init.c,v 1.32 2003/12/14 16:28:47 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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 */ |
{ | | { |
| | #ifdef WIN32 |
| | char tmp = 1; |
| | #else |
int tmp =1; | | int tmp =1; |
| | #endif |
| | |
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"); |