[ECOS] lwip socket errors
William Wagner
will_wagner@carallon.com
Fri Feb 18 17:26:00 GMT 2011
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
------------------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ecos-106c473a344b78de23a67b749f218911006577ab.patch
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20110218/a8b1abed/attachment.ksh>
-------------- next part --------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list