diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdebug.h | 13 | ||||
| -rw-r--r-- | include/rtdef.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/include/rtdebug.h b/include/rtdebug.h index 69a33b391f..9cd6c5e0e6 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -23,6 +23,19 @@ #include <rtconfig.h> +/* settings depend check */ +#ifdef RT_USING_POSIX +#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 +#endif + +#ifdef RT_USING_POSIX_TERMIOS +#if !defined(RT_USING_POSIX) +#error "termios need POSIX layer(RT_USING_POSIX)" +#endif +#endif + /* Using this macro to control all kernel debug features. */ #ifdef RT_DEBUG diff --git a/include/rtdef.h b/include/rtdef.h index 5c3f774226..43920ea325 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -885,7 +885,7 @@ struct rt_device rt_size_t (*write) (rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size); rt_err_t (*control)(rt_device_t dev, int cmd, void *args); -#if defined(RT_USING_DFS) && defined(RT_USING_DFS_DEVFS) +#if defined(RT_USING_POSIX) const struct dfs_file_ops *fops; rt_list_t wait_queue; #endif |
