X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=boards%2Farduino-mega%2Fexamples%2Farduino-mega_aprs%2Fcfg%2Fcfg_lwip.h;h=73acb913534f4b4c33be90e72e0a8d99ea43e2db;hb=96f5bf2be20f6babd7805a907987e20f1b0e73f7;hp=b6b55f65269d3df5bcc07c6073240abbb54a1d7c;hpb=cd50c7c378c6addd1af1d4f64e5a56240ee5dbe2;p=bertos.git diff --git a/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_lwip.h b/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_lwip.h index b6b55f65..73acb913 100644 --- a/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_lwip.h +++ b/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_lwip.h @@ -1206,6 +1206,13 @@ * $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.