From b886a19bf95701b73f0e191b190d28795c5a8cfc Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Sun, 25 Sep 2011 02:33:51 +0000 Subject: [PATCH] fixed errno issue when using newlib. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1729 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/kservice.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kservice.c b/src/kservice.c index 34a3e8032..76d6f099b 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -25,12 +25,9 @@ */ /*@{*/ -#ifndef RT_USING_NEWLIB /* global errno in RT-Thread */ static volatile int _errno; -#else -#include -#endif + #if defined(RT_USING_DEVICE) && defined(RT_USING_CONSOLE) static rt_device_t _console_device = RT_NULL; #endif -- GitLab