From 1a5af295be54ba5666befa6e01cd3043f73cd891 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 7 May 2022 19:50:25 +0100 Subject: Move unistd out of the global compat header. --- src/threadsocket.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/threadsocket.cpp') 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 # endif class ThreadSignalSocket final @@ -95,7 +97,7 @@ public: ~ThreadSignalSocket() { - close(send_fd); + SocketEngine::Close(send_fd); SocketEngine::Close(this); } -- cgit v1.3.1-10-gc9f91