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
* $WIZ$ type = "boolean"
*/
#define LWIP_SOCKET 1
+#if LWIP_SOCKET
+ /*
+ * The sockets.c file requires this macro to be defined to really
+ * set errno on errors.
+ */
+ #define ERRNO
+#endif
/**
* Enable BSD-style sockets functions names.