On Tue, Jul 17, 2012 at 6:09 PM, Heiko Hund <heiko.h...@sophos.com> wrote:
> On Tuesday 17 July 2012 17:25:25 Alon Bar-Lev wrote:
>> Just I don't like the CONNECT_IN_PROGRESS.
>> I think it is better to rebase first and then submit the
>> CONNECT_IN_PROGRESS afterwards, I think it would be simpler to just
>> compare to the two statuses.
>
> That would result in either something like
>
>   if (status == EINPROGRESS
>   #ifdef WIN32
>     || status == WSAEWOULDBLOCK
>   #endif
>   )
>
> or slightly less disturbing
>
>   #ifndef WSAEWOULDBLOCK
>   #define WSAEWOULDBLOCK 10035L
>   #endif
>
> I do prefer the suggested approach resolving this with configure over these.
> Or did you have something more attractive in mind?
>

or:
---
#define EWOULDBLOCK WSAWOULDBLOCK
---
in configure.ac

Reply via email to