1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 09: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
@@ -13,8 +13,9 @@
#include "sockets.h"
#include "socketengine.h"
#include <unistd.h>
#ifndef _WIN32
#include <fcntl.h>
#endif
Pipe::Pipe() : Socket(-1), WritePipe(-1)
{
@@ -37,7 +38,7 @@ Pipe::Pipe() : Socket(-1), WritePipe(-1)
Pipe::~Pipe()
{
if (this->WritePipe >= 0)
close(this->WritePipe);
anope_close(this->WritePipe);
}
bool Pipe::ProcessRead()