mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
fix goalc crash and clang warnings (#1441)
This commit is contained in:
@@ -146,7 +146,7 @@ int set_socket_timeout(int socket, long microSeconds) {
|
||||
int write_to_socket(int socket, const char* buf, int len) {
|
||||
int bytes_wrote = 0;
|
||||
#ifdef __linux
|
||||
bytes_wrote = write(socket, buf, len);
|
||||
bytes_wrote = send(socket, buf, len, MSG_NOSIGNAL);
|
||||
#elif _WIN32
|
||||
bytes_wrote = send(socket, buf, len, 0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user