fixed for linux
This commit is contained in:
1 parent
d625642abc
commit
86577f4b80
13 files changed
+484
-467
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
#ifdef __unix__
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#endif
|
||||
@@ -21,7 +22,7 @@ int TcpIpBase::closeSocket(socket_t socket) {
|
||||
#ifdef _WIN32
|
||||
return closesocket(socket);
|
||||
#elif defined(__unix__)
|
||||
return close(socket)
|
||||
return close(socket);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user