X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=blobdiff_plain;f=boards%2Fsam3n-ek%2Fbenchmark%2Fsam3n-ek_kernel_footprint%2Fcfg%2Fcfg_lwip.h;h=73acb913534f4b4c33be90e72e0a8d99ea43e2db;hp=c9aa49f442c6a75ed757b04480781b0c73bb7f1a;hb=284a3dbeae9044ee5ab8f9f30a7e691120460379;hpb=55e0bd3abe4af67a82124bf5e97a708f24d5e240 diff --git a/boards/sam3n-ek/benchmark/sam3n-ek_kernel_footprint/cfg/cfg_lwip.h b/boards/sam3n-ek/benchmark/sam3n-ek_kernel_footprint/cfg/cfg_lwip.h index c9aa49f4..73acb913 100644 --- a/boards/sam3n-ek/benchmark/sam3n-ek_kernel_footprint/cfg/cfg_lwip.h +++ b/boards/sam3n-ek/benchmark/sam3n-ek_kernel_footprint/cfg/cfg_lwip.h @@ -133,8 +133,10 @@ /** * MEM_ALIGNMENT: should be set to the alignment of the CPU + * \verbatim * 4 byte alignment -> #define MEM_ALIGNMENT 4 * 2 byte alignment -> #define MEM_ALIGNMENT 2 + * \endverbatim */ #ifndef MEM_ALIGNMENT #define MEM_ALIGNMENT 4 @@ -701,12 +703,16 @@ /** DNS_LOCAL_HOSTLIST: Implements a local host-to-address list. If enabled, * you have to define + * \code * #define DNS_LOCAL_HOSTLIST_INIT {{"host1", 0x123}, {"host2", 0x234}} + * \endcode * (an array of structs name/address, where address is an u32_t in network * byte order). * * Instead, you can also use an external function: + * \code * #define DNS_LOOKUP_LOCAL_EXTERN(x) extern u32_t my_lookup_function(const char *name) + * \endcode * that returns the IP address or INADDR_NONE if not found. */ #ifndef DNS_LOCAL_HOSTLIST @@ -1200,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.