mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 21:59:02 -04:00
fixed compilation on win$
This commit is contained in:
parent
4a76fddaa9
commit
f6892066bc
5 changed files with 10 additions and 6 deletions
|
@ -102,8 +102,8 @@ private:
|
|||
HiddenServiceClient *m_client;
|
||||
|
||||
// make the object non copyable
|
||||
HiddenService(const HiddenService& s) {}
|
||||
HiddenService& operator=(const HiddenService& s) { return *this ; }
|
||||
HiddenService(const HiddenService&) {}
|
||||
HiddenService& operator=(const HiddenService&) { return *this ; }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ static bool test_listening_port(const std::string& /*address*/,uint16_t port)
|
|||
return false;
|
||||
|
||||
/* Initialize socket structure */
|
||||
bzero((char *) &serv_addr, sizeof(serv_addr));
|
||||
memset((char *) &serv_addr, 0,sizeof(serv_addr));
|
||||
|
||||
serv_addr.sin_family = AF_INET;
|
||||
serv_addr.sin_addr.s_addr = INADDR_ANY;
|
||||
|
@ -174,7 +174,6 @@ static bool test_listening_port(const std::string& /*address*/,uint16_t port)
|
|||
unix_fcntl_nonblock(sockfd);
|
||||
int res = listen(sockfd,5);
|
||||
|
||||
int err = errno;
|
||||
close(sockfd);
|
||||
|
||||
if(!res)
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue