[lwIP] Fix the compiling warning for lwip-1.4.1

This commit is contained in:
bernard 2017-11-03 21:08:31 +08:00
parent bbe6425f94
commit 28433d9d54
2 changed files with 4 additions and 4 deletions

View File

@ -76,10 +76,6 @@ typedef rt_uint32_t mem_ptr_t;
#define LWIP_TIMEVAL_PRIVATE 1
#endif
#if defined(RT_USING_DFS_NET)
#define LWIP_COMPAT_SOCKETS 0
#endif
#if defined(__CC_ARM) /* ARMCC compiler */
#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__))

View File

@ -363,9 +363,13 @@
* LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names.
* (only used if you use sockets.c)
*/
#ifdef RT_USING_DFS_NET
#define LWIP_COMPAT_SOCKETS 0
#else
#ifndef LWIP_COMPAT_SOCKETS
#define LWIP_COMPAT_SOCKETS 1
#endif
#endif
/**