summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/unix/stream_peer_tcp_posix.cpp5
-rw-r--r--platform/haiku/os_haiku.cpp4
-rw-r--r--platform/haiku/os_haiku.h2
3 files changed, 7 insertions, 4 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);
diff --git a/platform/haiku/os_haiku.cpp b/platform/haiku/os_haiku.cpp
index 4d45bb3333..7c207f265b 100644
--- a/platform/haiku/os_haiku.cpp
+++ b/platform/haiku/os_haiku.cpp
@@ -79,3 +79,7 @@ OS::VideoMode OS_Haiku::get_video_mode(int p_screen) const {
void OS_Haiku::get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen) const {
}
+
+String OS_Haiku::get_executable_path() const {
+ return OS::get_executable_path();
+}
diff --git a/platform/haiku/os_haiku.h b/platform/haiku/os_haiku.h
index 7e3cf84579..8740a738cc 100644
--- a/platform/haiku/os_haiku.h
+++ b/platform/haiku/os_haiku.h
@@ -1,7 +1,6 @@
#ifndef OS_HAIKU_H
#define OS_HAIKU_H
-#include "os/os.h"
#include "drivers/unix/os_unix.h"
@@ -38,6 +37,7 @@ public:
virtual void set_video_mode(const VideoMode& p_video_mode, int p_screen=0);
virtual VideoMode get_video_mode(int p_screen=0) const;
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen=0) const;
+ virtual String get_executable_path() const;
};
#endif