mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
FIX: ESHUTDOWN is not defined when newlib is enabled.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1435 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -57,6 +57,10 @@ typedef rt_uint32_t mem_ptr_t;
|
||||
#include <errno.h>
|
||||
/* some errno not defined in newlib */
|
||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
||||
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
||||
180 here because the number "108" which is used
|
||||
in arch.h has been assigned to another error code. */
|
||||
#define ESHUTDOWN 180
|
||||
#else
|
||||
#define LWIP_PROVIDE_ERRNO
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user