diff options
| author | 2022-05-07 19:50:25 +0100 | |
|---|---|---|
| committer | 2022-05-07 20:18:15 +0100 | |
| commit | 1a5af295be54ba5666befa6e01cd3043f73cd891 (patch) | |
| tree | 867ea21210a921c7f33822b589b6197306bfded6 /src/threadsocket.cpp | |
| parent | Get rid of entrypoint, specify the main function name directly. (diff) | |
Move unistd out of the global compat header.
Diffstat (limited to 'src/threadsocket.cpp')
| -rw-r--r-- | src/threadsocket.cpp | 4 |
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); } |
