diff options
author | Kostadin Damyanov <maxmight@gmail.com> | 2015-05-25 06:34:16 +0300 |
---|---|---|
committer | Kostadin Damyanov <maxmight@gmail.com> | 2015-05-25 06:34:16 +0300 |
commit | a5533270436e51c660d2c196e2a6a8f9e21d6420 (patch) | |
tree | 416b6ad13bcc79eb7e34ca9c452e797a7d1d8186 /drivers/unix/stream_peer_tcp_posix.cpp | |
parent | 826f8af1ef3311ddcc0fab27629f7a5fcfa1b024 (diff) | |
download | redot-engine-a5533270436e51c660d2c196e2a6a8f9e21d6420.tar.gz |
Haiku: some small fixes
Diffstat (limited to 'drivers/unix/stream_peer_tcp_posix.cpp')
-rw-r--r-- | drivers/unix/stream_peer_tcp_posix.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/unix/stream_peer_tcp_posix.cpp b/drivers/unix/stream_peer_tcp_posix.cpp index f65eb694d6..6e19647933 100644 --- a/drivers/unix/stream_peer_tcp_posix.cpp +++ b/drivers/unix/stream_peer_tcp_posix.cpp @@ -206,11 +206,10 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent, while (data_to_send) { - // TODO: haiku does not have MSG_NOSIGNAL #ifdef __HAIKU__ - int sent_amount = send(sockfd, offset, data_to_send, 0); + int sent_amount = send(sockfd, offset, data_to_send, 0); #else - int sent_amount = send(sockfd, offset, data_to_send, MSG_NOSIGNAL); + int sent_amount = send(sockfd, offset, data_to_send, MSG_NOSIGNAL); #endif //printf("Sent TCP data of %d bytes, errno %d\n", sent_amount, errno); |