curl-users
Re: Fw: BCC32 Multiple declaration for 'pollfd'
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Jan 2017 19:47:24 +0100 (CET)
Date: Tue, 3 Jan 2017 19:47:24 +0100 (CET)
On Tue, 3 Jan 2017, Toninho via curl-users wrote:
> Well, I'd changed select.h, line 37:
>
> #if !defined(HAVE_STRUCT_POLLFD) && \
> !defined(HAVE_SYS_POLL_H) && \
> !defined(HAVE_POLL_H) && !defined(HAVE_WINSOCK2_H)
>
> and now I can compile just fine.
But why is that needed? On lib/config-win32.h line 626, HAVE_STRUCT_POLLFD is
defined if winsock2.h exists so that section you modified would be skipped!
These windows compiler setups are carefully crafted over the years so I really
want to only change them when we fully understand exactly why and how.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-users FAQ: https://curl.haxx.se/docs/faq.html Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2017-01-03