You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/05 05:43:08 UTC
(nuttx) branch master updated: fs_lock: fix cmake build error
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new bd83d2aca5 fs_lock: fix cmake build error
bd83d2aca5 is described below
commit bd83d2aca593cd4bea5483c4d9a4334b801f0b98
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Tue Mar 26 10:48:17 2024 +0800
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 <zh...@xiaomi.com>
---
fs/vfs/CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/vfs/CMakeLists.txt b/fs/vfs/CMakeLists.txt
index 2321dd59fd..f0babd3a9c 100644
--- a/fs/vfs/CMakeLists.txt
+++ b/fs/vfs/CMakeLists.txt
@@ -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()