summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mrázek2012-09-28 20:45:22 (GMT)
committerPetr Mrázek2012-09-28 20:45:22 (GMT)
commit178a4916da838e46e46e769e566e47fff6eff8f8 (patch)
treedaf5748ea406e1e58d77659ebe41316f485f6334
parentd0b2d0750dc2d529a152eba4f3f519f69ff7eab0 (diff)
parent067463776b38d995a8e180fca5940485ff15ad7b (diff)
downloadclsocket-178a4916da838e46e46e769e566e47fff6eff8f8.tar.gz
clsocket-178a4916da838e46e46e769e566e47fff6eff8f8.tar.bz2
clsocket-178a4916da838e46e46e769e566e47fff6eff8f8.tar.xz
Merge pull request #1 from espenhw/master
Fix TranslateSocketError on OSX
-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: