curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: BCC32 Multiple declaration for 'pollfd'

From: Toninho via curl-users <curl-users_at_cool.haxx.se>
Date: Mon, 2 Jan 2017 09:43:25 -0200

Thanks for answer.

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.

Thank you,

Regards.

-----Mensagem Original-----
From: Daniel Stenberg
Sent: Monday, January 2, 2017 9:19 AM
To: Toninho via curl-users
Cc: Toninho
Subject: Re: BCC32 Multiple declaration for 'pollfd'

On Fri, 30 Dec 2016, Toninho via curl-users wrote:

> I'm trying to compile curl with Borland BCC 7.20 and I receive this error:

> Error E2238 .\BCC_objs\http.int 200503: Multiple declaration for 'pollfd'
> Error E2344 .\BCC_objs\http.int 156344: Earlier declaration of 'pollfd'

This looks like compiler brekage to me. http.c doesn't even use any pollfd
so
it appears that problem might originate from your include files?

Can you make your compiler stop after the preprocessing stage to see if you
can find out any problems with 'pollfd' at that point in time?

-- 
  / 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.html
Received on 2017-01-02