summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-30 19:41:13 -0400
committerAdam <Adam@anope.org>2010-10-30 19:41:13 -0400
commitfb9f41b3e52cfddada7773a65b9723cd3a96b785 (patch)
treebd97f21b4a5098d43f2a680ae09136f3e0ef6bb5 /src/socketengines
parenta7e5d51616363214d391500b2d9d647379fba833 (diff)
Made gettext work on most OSs. Tested on Debian, FreeBSD, Gentoo, and Windows.
Added a search path option to the Config script for cmake to use when finding libraries for modules or for gettext. Fixed m_mysql and m_ssl to work under Windows, made the Windows Config program remember the last used options, and fixed Windows release builds.
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/socketengine_win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socketengines/socketengine_win32.cpp b/src/socketengines/socketengine_win32.cpp
index 240c4282e..78d4bf92d 100644
--- a/src/socketengines/socketengine_win32.cpp
+++ b/src/socketengines/socketengine_win32.cpp
@@ -26,7 +26,7 @@ class PipeIO : public SocketIO
int Recv(Socket *s, char *buf, size_t sz) const
{
static char dummy[512];
- return read(s->GetFD(), &dummy, 512);
+ return recv(s->GetFD(), dummy, 512, 0);
}
/** Write something to the socket
@@ -38,7 +38,7 @@ class PipeIO : public SocketIO
{
static const char dummy = '*';
Pipe *pipe = debug_cast<Pipe *>(s);
- return write(pipe->WritePipe, &dummy, 1);
+ return send(pipe->WritePipe, &dummy, 1, 0);
}
} pipeSocketIO;