You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Haiku: remove an #ifdef as the platform now supports MSG_NOSIGNAL
This commit is contained in:
@@ -206,11 +206,7 @@ Error StreamPeerTCPPosix::write(const uint8_t* p_data,int p_bytes, int &r_sent,
|
|||||||
|
|
||||||
while (data_to_send) {
|
while (data_to_send) {
|
||||||
|
|
||||||
#ifdef __HAIKU__
|
|
||||||
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);
|
//printf("Sent TCP data of %d bytes, errno %d\n", sent_amount, errno);
|
||||||
|
|
||||||
if (sent_amount == -1) {
|
if (sent_amount == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user