mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
Compilation fix for gcc 4.3.3: string.h + memset() || cstring + std::memset()
This commit is contained in:
@@ -344,7 +344,7 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
|
|||||||
|
|
||||||
pollfd pollBuf;
|
pollfd pollBuf;
|
||||||
|
|
||||||
std::memset(&pollBuf, 0, sizeof(pollfd));
|
memset(&pollBuf, 0, sizeof(pollfd));
|
||||||
pollBuf.fd = _sockfd;
|
pollBuf.fd = _sockfd;
|
||||||
if (mode & SELECT_READ) pollBuf.events |= POLLIN;
|
if (mode & SELECT_READ) pollBuf.events |= POLLIN;
|
||||||
if (mode & SELECT_WRITE) pollBuf.events |= POLLOUT;
|
if (mode & SELECT_WRITE) pollBuf.events |= POLLOUT;
|
||||||
|
Reference in New Issue
Block a user