aboutsummaryrefslogtreecommitdiff
path: root/src/threadsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadsocket.cpp')
-rw-r--r--src/threadsocket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/threadsocket.cpp b/src/threadsocket.cpp
index a1448fbce..93fae7f65 100644
--- a/src/threadsocket.cpp
+++ b/src/threadsocket.cpp
@@ -77,6 +77,8 @@ SocketThread::SocketThread()
# ifdef _WIN32
# define pipe(fd) _pipe(fd, 1, 0)
+# else
+# include <unistd.h>
# endif
class ThreadSignalSocket final
@@ -95,7 +97,7 @@ public:
~ThreadSignalSocket()
{
- close(send_fd);
+ SocketEngine::Close(send_fd);
SocketEngine::Close(this);
}