diff options
author | Adam <Adam@anope.org> | 2010-10-30 19:41:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-30 19:41:13 -0400 |
commit | fb9f41b3e52cfddada7773a65b9723cd3a96b785 (patch) | |
tree | bd97f21b4a5098d43f2a680ae09136f3e0ef6bb5 /src/socketengines | |
parent | a7e5d51616363214d391500b2d9d647379fba833 (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.cpp | 4 |
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; |