fs_lock: fix cmake build error
nuttx/fs/vfs/fs_lock.c:39:10: fatal error: sched/sched.h: No such file or directory
39 | #include "sched/sched.h"
| ^~~~~~~~~~~~~~~
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
e16c785e8c
commit
bd83d2aca5
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ set(SRCS
|
|||
# File lock support
|
||||
|
||||
if(NOT "${CONFIG_FS_LOCK_BUCKET_SIZE}" STREQUAL "0")
|
||||
set_source_files_properties(fs_lock.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
|
||||
PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/sched)
|
||||
list(APPEND SRCS fs_lock.c)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue