[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ aliases in <netdb.h>
From: |
Pedro Alves |
Subject: |
Re: C++ aliases in <netdb.h> |
Date: |
Fri, 16 Dec 2016 18:27:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 12/15/2016 01:13 PM, Gisle Vanem wrote:
>> I've not checked all test-*.cc files for such errors.
>
> Another issue with sys_select.in.h:
> test-sys_select-c++.cc
> sys/select.h(305): error C2440: 'return': cannot convert from
> 'int (__cdecl *)(int,fd_set *,fd_set *,fd_set *,timeval *)' to
> 'gnulib_::_gl_select_wrapper::type'
> sys/select.h(305): note: This conversion requires a reinterpret_cast, a
> C-style cast or function-style cast
>
> But I fail to resolve this one.
Could it be due to a mismatch of "timeval" types? Note there's
the system struct timeval type, and then there's the typedef in
the gnulib namespace, that will point to the rpl_timeval replacement
type on Windows.
Thanks,
Pedro Alves