diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index c24ef3a4..ab7d4983 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -324,6 +324,7 @@ void g_tcp_close(int sck) { return; } + shutdown(sck, 2); #if defined(_WIN32) closesocket(sck); #else @@ -557,6 +558,8 @@ int g_get_threadid(void) return 0; #elif defined(USE_PTHREAD) return pthread_self(); +#else + return 0; #endif } |