mirror of
https://github.com/anope/anope.git
synced 2026-07-03 08:33:12 +02:00
Fix Windows
This commit is contained in:
+3
-2
@@ -14,10 +14,11 @@
|
||||
#include "socketengine.h"
|
||||
#include "logger.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
std::map<int, Socket *> SocketEngine::Sockets;
|
||||
|
||||
@@ -421,7 +422,7 @@ Socket::Socket(int sock, bool ipv6, int type) : Flags<SocketFlag>(SocketFlagStri
|
||||
Socket::~Socket()
|
||||
{
|
||||
SocketEngine::DelSocket(this);
|
||||
close(this->Sock);
|
||||
anope_close(this->Sock);
|
||||
this->IO->Destroy();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user