From fb9f41b3e52cfddada7773a65b9723cd3a96b785 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 30 Oct 2010 19:41:13 -0400 Subject: 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. --- src/socketengines/socketengine_win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socketengines/socketengine_win32.cpp') 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(s); - return write(pipe->WritePipe, &dummy, 1); + return send(pipe->WritePipe, &dummy, 1, 0); } } pipeSocketIO; -- cgit