bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib poll() returns POLLERR on Win32 platform, breaking libvirt


From: Paolo Bonzini
Subject: Re: gnulib poll() returns POLLERR on Win32 platform, breaking libvirt
Date: Wed, 19 Apr 2017 18:23:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0


On 19/04/2017 17:50, Daniel P. Berrange wrote:
>> But perhaps it's simpler to add "#undef recv" and "#undef select" near
>> the top of the file, in addition to this change.
> 
> If we add the undef's then we don't need to change anything related to
> windows_compute_revents_socket() as it'd be calling the native recv()
> which expects the SOCKET rather than fd.
> 
> If we undef those functions, would that not re-introduce the bug mentioned
> in http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html  ?

No, because that's itself a #define:

# define recv recv_used_without_including_sys_socket_h

that is introduced, for whatever reason I cannot fathom, by
lib/sys_time.in.h.

Thanks,

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]