This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ safe include files


Richard Panton wrote:
> 
> I've noticed that a handful of functions within the networking package
> appear to not have the correct type-linkage when compiling C++ programs
> (i.e. they are declared as extern - C++ linkage, when the actual routines
> are C linkage).
> 
> I've attached a patch that inserts the 'externC', or 'extern "C" {'
> constructions into the relevant place in the header files.
> 
> Additionally, the (empty) function getservbynumber() is present, whilst
> the header file refers to the (correct) getservbyport() function. This has
> also been corrected in the patch.

Applied. Thanks!

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]