mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
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:
@@ -51,6 +51,8 @@ set(SRCS
|
|||||||
# File lock support
|
# File lock support
|
||||||
|
|
||||||
if(NOT "${CONFIG_FS_LOCK_BUCKET_SIZE}" STREQUAL "0")
|
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)
|
list(APPEND SRCS fs_lock.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user