1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 08:33:12 +02:00

Fix Windows

This commit is contained in:
Adam
2012-09-02 08:30:54 -04:00
parent e3d5140dcc
commit 1af64a9bbb
45 changed files with 152 additions and 115 deletions
+3 -2
View File
@@ -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();
}