1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 12:36:38 +02:00

Fix Windows build

This commit is contained in:
Adam
2014-02-21 21:48:44 -05:00
parent e2bd08fbff
commit aa6b12c5eb
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -517,8 +517,8 @@ ListenSocket::ListenSocket(const Anope::string &bindip, int port, bool i)
{
this->SetBlocking(false);
int op = 1;
setsockopt(this->GetFD(), SOL_SOCKET, SO_REUSEADDR, &op, sizeof(op));
const int op = 1;
setsockopt(this->GetFD(), SOL_SOCKET, SO_REUSEADDR, reinterpret_cast<const char *>(&op), sizeof(op));
this->bindaddr.pton(i ? AF_INET6 : AF_INET, bindip, port);
this->io->Bind(this, bindip, port);