summaryrefslogtreecommitdiffstats
path: root/source/cSocket.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-15 23:24:11 +0200
commitd21e4dacf7341b924fa534523ba31348ff6789ad (patch)
tree95a8b355c471cd2ab39e58f3d80b63d64ab8510a /source/cSocket.cpp
parentAdded temporary debug statistics of the RelEntMoveLook packet removal efficiency (diff)
downloadcuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.gz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.bz2
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.lz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.xz
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.tar.zst
cuberite-d21e4dacf7341b924fa534523ba31348ff6789ad.zip
Diffstat (limited to '')
-rw-r--r--source/cSocket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cSocket.cpp b/source/cSocket.cpp
index 57ecfcbdc..edce83981 100644
--- a/source/cSocket.cpp
+++ b/source/cSocket.cpp
@@ -111,7 +111,7 @@ AString cSocket::GetErrorString( int a_ErrNo )
// According to http://linux.die.net/man/3/strerror_r there are two versions of strerror_r():
- #if ( _GNU_SOURCE ) // GNU version of strerror_r()
+ #if ( _GNU_SOURCE ) && !defined(ANDROID_NDK) // GNU version of strerror_r()
char * res = strerror_r( errno, buffer, ARRAYCOUNT(buffer) );
if( res != NULL )
@@ -158,7 +158,7 @@ int cSocket::GetLastError()
int cSocket::SetReuseAddress()
{
-#ifdef _WIN32
+#if defined(_WIN32) || defined(ANDROID_NDK)
char yes = 1;
#else
int yes = 1;