[Kernel] Add more setting checking for RT_USING_POSIX.

This commit is contained in:
bernard 2017-10-18 17:27:48 +08:00
parent a8a7d60877
commit e4beb9c0f7
1 changed files with 9 additions and 0 deletions

View File

@ -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