mirror of https://github.com/Icinga/icinga2.git
Build fix for Windows
This commit is contained in:
parent
0a6505ce2d
commit
1667fbaf31
|
@ -301,7 +301,7 @@ size_t Socket::Read(void *buffer, size_t count)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
rc = read(GetFD(), (char *)buffer, count);
|
rc = read(GetFD(), (char *)buffer, count);
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
rc = recv(GetFD(), (char *)buffer, count);
|
rc = recv(GetFD(), (char *)buffer, count, 0);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
|
Loading…
Reference in New Issue