Compilation fix for gcc 4.3.3: string.h + memset() || cstring + std::memset()

This commit is contained in:
Marian Krivos 2009-02-14 15:47:11 +00:00
parent 454318cd17
commit ec7c34dec4

View File

@ -344,7 +344,7 @@ bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
pollfd pollBuf;
std::memset(&pollBuf, 0, sizeof(pollfd));
memset(&pollBuf, 0, sizeof(pollfd));
pollBuf.fd = _sockfd;
if (mode & SELECT_READ) pollBuf.events |= POLLIN;
if (mode & SELECT_WRITE) pollBuf.events |= POLLOUT;