mirror of
https://github.com/anope/anope.git
synced 2026-07-03 07:13:14 +02:00
Fix Windows build
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
#include "pthread/pthread.h"
|
||||
#include "sigaction/sigaction.h"
|
||||
|
||||
typedef int ssize_t;
|
||||
|
||||
namespace Anope
|
||||
{
|
||||
class string;
|
||||
|
||||
Reference in New Issue
Block a user