mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-02 17:50:53 +02:00
Compilation fix for gcc 4.3.3: string.h + memset() || cstring + std::memset()
This commit is contained in:
parent
454318cd17
commit
ec7c34dec4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user