summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEspen Wiborg2012-08-25 18:18:26 (GMT)
committerEspen Wiborg2012-08-25 18:18:26 (GMT)
commit067463776b38d995a8e180fca5940485ff15ad7b (patch)
treedaf5748ea406e1e58d77659ebe41316f485f6334
parentd0b2d0750dc2d529a152eba4f3f519f69ff7eab0 (diff)
downloadclsocket-067463776b38d995a8e180fca5940485ff15ad7b.tar.gz
clsocket-067463776b38d995a8e180fca5940485ff15ad7b.tar.bz2
clsocket-067463776b38d995a8e180fca5940485ff15ad7b.tar.xz
SimpleSocket::TranslateSocketError needs to do sensible things #ifdef _DARWIN
-rwxr-xr-xsrc/SimpleSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SimpleSocket.cpp b/src/SimpleSocket.cpp
index 2f9f434..713e52b 100755
--- a/src/SimpleSocket.cpp
+++ b/src/SimpleSocket.cpp
@@ -947,7 +947,7 @@ int32 CSimpleSocket::SendFile(int32 nOutFd, int32 nInFd, off_t *pOffset, int32 n
//------------------------------------------------------------------------------
void CSimpleSocket::TranslateSocketError(void)
{
-#ifdef _LINUX
+#if defined(_LINUX) || defined(_DARWIN)
switch (errno)
{
case EXIT_SUCCESS: