summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/newlib/libc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c
index 7d2c3cac56..de8523a1f6 100644
--- a/components/libc/newlib/libc.c
+++ b/components/libc/newlib/libc.c
@@ -99,6 +99,10 @@ void libc_system_init(const char* tty_name)
int fd;
extern int pthread_system_init(void);
+#ifndef RT_USING_DFS_DEVFS
+#error Please enable devfs by defining RT_USING_DFS_DEVFS in rtconfig.h
+#endif
+
/* init console device */
rt_console_init(tty_name);