1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Haiku: some small fixes

This commit is contained in:
Kostadin Damyanov
2015-05-25 06:34:16 +03:00
parent 826f8af1ef
commit a553327043
3 changed files with 7 additions and 4 deletions

View File

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