mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Don't build libc/pthread if pthreasa are disable. Fix a warning in dirent logic if mountpoints are disabled.
This commit is contained in:
@@ -227,7 +227,9 @@ FAR DIR *opendir(FAR const char *path)
|
||||
FAR struct inode *inode = NULL;
|
||||
FAR struct fs_dirent_s *dir;
|
||||
struct inode_search_s desc;
|
||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||
FAR const char *relpath = NULL;
|
||||
#endif
|
||||
bool isroot = false;
|
||||
int ret;
|
||||
|
||||
@@ -260,7 +262,9 @@ FAR DIR *opendir(FAR const char *path)
|
||||
{
|
||||
inode = desc.node;
|
||||
DEBUGASSERT(inode != NULL);
|
||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||
relpath = desc.relpath;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user