1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Haiku: link with the haiku libs, stub the OS_Haiku class.

This commit is contained in:
Kostadin Damyanov
2015-05-25 06:02:55 +03:00
parent 4e07a2dea8
commit 826f8af1ef
4 changed files with 85 additions and 4 deletions

View File

@@ -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) {