diff --git a/include/rtdebug.h b/include/rtdebug.h index 9cd6c5e0e6..e600320361 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