mirror of
https://github.com/anope/anope.git
synced 2026-06-27 08:26:38 +02:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user