Correctly set errno when sockets API is enabled.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 28 Mar 2011 12:18:41 +0000 (12:18 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 28 Mar 2011 12:18:41 +0000 (12:18 +0000)
commitdcf825f3b1272edaea8977c82358d58fac0cb35c
tree73a656909c065f4f72ce816262d734e9bf6c4c66
parent577a9116e32fac33614a21b15d8d1443c3ac420b
Correctly set errno when sockets API is enabled.

The sockets.c provides BSD compatible sockets API, which uses errno
to communicate which error occurred.
Without setting ERRNO, it's not possible to find out which error
occurred, eg. it's not possible to understand if the peer reset the
connection after a call to send().

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4817 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cfg/cfg_lwip.h