From e4beb9c0f7d72786b9ace6830bf7b3a9e75a9637 Mon Sep 17 00:00:00 2001 From: bernard Date: Wed, 18 Oct 2017 17:27:48 +0800 Subject: [PATCH] [Kernel] Add more setting checking for RT_USING_POSIX. --- include/rtdebug.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/rtdebug.h b/include/rtdebug.h index 9cd6c5e0e..e60032036 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -28,6 +28,15 @@ #if !defined(RT_USING_DFS) || !defined(RT_USING_DFS_DEVFS) #error "POSIX poll/select, stdin need file system(RT_USING_DFS) and device file system(RT_USING_DFS_DEVFS)" #endif + +#if defined(RT_USING_LWIP) && !defined(RT_USING_DFS_NET) +#error "POSIX poll/select, stdin need file BSD socket API(RT_USING_DFS_NET)" +#endif + +#if !defined(RT_USING_LIBC) +#error "POSIX layer need standard C library(RT_USING_LIBC)" +#endif + #endif #ifdef RT_USING_POSIX_TERMIOS