This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

lwip socket errors


Hi All,

Been looking at getting lwip to set errno when errors occur and am struggling a bit. The problem is in packages\net\lwip_tcpip\current\src\api\sockets.c:152

To get it so that errno is set with the macro set_errno you must have ERRNO defined. I have changed the cdl so that this is set. However you then get a compilation error as errno is undefined. Attached is my proposed patch to fix the issue. I realise this is a change to lwip code which is best avoided but I can't see any other way of making it work. Opinions?

I will ask upstream to see what they have to say on the issue as well.

Thanks
Will

--
------------------------------------------------------------------------
Will Wagner                                     will_wagner@carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

Attachment: ecos-106c473a344b78de23a67b749f218911006577ab.patch
Description: Text document

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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