fixed errno issue when using newlib.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1729 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-09-25 02:33:51 +00:00
parent 8e8b84dcdd
commit b886a19bf9

View File

@ -25,12 +25,9 @@
*/
/*@{*/
#ifndef RT_USING_NEWLIB
/* global errno in RT-Thread */
static volatile int _errno;
#else
#include <errno.h>
#endif
#if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE)
static rt_device_t _console_device = RT_NULL;
#endif