Re: [PATCH ew/daemon-socket-keepalive] Windows: add missing definition of ENOTSOCK
- From
- Eric Wong <e@80x24.org>
- Date
- Jul 22, 2016, 19:31 UTC
- Message-ID
- <20160722193156.GA30158@dcvr>
- In-Reply-To
- <28dbe3b0-7a16-1b87-3d59-b8c981fead7c@kdbg.org>
Johannes Sixt <j6t@kdbg.org> wrote:
> The previous commit introduced the first use of ENOTSOCK. This macro is > not available on Windows. Define it as WSAENOTSOCK because that is the > corresponding error value reported by the Windows versions of socket > functions.
Thanks. I thought compat/poll/poll.c already used ENOTSOCK but I was mislead by the #ifdefs :x