[ECOS] C++ safe include files

Jonathan Larmour jlarmour@redhat.com
Wed Mar 28 09:49:00 GMT 2001


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



More information about the Ecos-discuss mailing list