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:
mbbill@gmail.com 2011-05-26 12:06:14 +00:00
parent f666fd926b
commit f862baaaac
1 changed files with 4 additions and 0 deletions

View File

@ -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