add un-defined errno in newlib.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@673 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-04-27 04:09:54 +00:00
parent 2c0f89d99a
commit 61e66e376b
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ typedef rt_uint32_t mem_ptr_t;
#ifdef RT_USING_NEWLIB #ifdef RT_USING_NEWLIB
#include <errno.h> #include <errno.h>
/* some errno not defined in newlib */
#define ENSRNOTFOUND 163 /* Domain name not found */
#else #else
#define LWIP_PROVIDE_ERRNO #define LWIP_PROVIDE_ERRNO
#endif #endif