Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Port use of shutdown() on mingw
Even though mingw's <unistd.h> has a definition for SHUT_WR, it is guarded by _POSIX_SOURCE, and does not get enabled in our build setup. We can instead utilize winsock2.h's non-standard names for shutdown(how). We also need to allow for a missing definition of ESHUTDOWN. Fixes: bf8653b ("server: Give client EOF when we are done writing") Fixes: 6a7def7 ("blocksize-policy: Add blocksize-write-disconnect=N parameter")
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters