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 3a86098c9e fs: fix compile break
3a86098c9e is described below
commit 3a86098c9ef0a6eb947a0b4b4699e75f5ca584d1
Author: xuxingliang <[email protected]>
AuthorDate: Sun Aug 11 11:52:13 2024 +0800
fs: fix compile break
/home/neo/projects/vela/nuttx/fs/vfs/fs_dup2.c: In function 'file_dup3':
/home/neo/projects/vela/nuttx/fs/inode/inode.h:73:35: error: implicit
declaration of function '_SCHED_GETTID' [-Werror=implicit-function-declaration]
73 | int n = sched_backtrace(_SCHED_GETTID(), \
| ^~~~~~~~~~~~~
/home/neo/projects/vela/nuttx/fs/vfs/fs_dup2.c:177:3: note: in expansion of
macro 'FS_ADD_BACKTRACE'
177 | FS_ADD_BACKTRACE(filep2);
Signed-off-by: xuxingliang <[email protected]>
---
fs/inode/inode.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/inode/inode.h b/fs/inode/inode.h
index 1e7081e0db..2a4352c181 100644
--- a/fs/inode/inode.h
+++ b/fs/inode/inode.h
@@ -35,6 +35,7 @@
#include <sched.h>
#include <nuttx/kmalloc.h>
+#include <nuttx/sched.h>
#include <nuttx/fs/fs.h>
#include <nuttx/lib/lib.h>