summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKostadin Damyanov <maxmight@gmail.com>2015-05-25 06:02:55 +0300
committerKostadin Damyanov <maxmight@gmail.com>2015-05-25 06:02:55 +0300
commit826f8af1ef3311ddcc0fab27629f7a5fcfa1b024 (patch)
tree005b1b92bdcc3e61b8e2f824d28cb3a0908a889c /drivers
parent4e07a2dea8c94337702d35d0d02d4b7234f86e29 (diff)
downloadredot-engine-826f8af1ef3311ddcc0fab27629f7a5fcfa1b024.tar.gz
Haiku: link with the haiku libs, stub the OS_Haiku class.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/stream_peer_tcp_posix.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/unix/stream_peer_tcp_posix.cpp b/drivers/unix/stream_peer_tcp_posix.cpp
index 2db7d9f6ec..f65eb694d6 100644
--- a/drivers/unix/stream_peer_tcp_posix.cpp
+++ b/drivers/unix/stream_peer_tcp_posix.cpp
@@ -206,8 +206,12 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent,
while (data_to_send) {
- // TODO: handle MSG_NOSIGNAL on __HAIKU__
- int sent_amount = send(sockfd, offset, data_to_send, 0);
+ // TODO: haiku does not have MSG_NOSIGNAL
+#ifdef __HAIKU__
+ int sent_amount = send(sockfd, offset, data_to_send, 0);
+#else
+ 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);
if (sent_amount == -1) {