diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/SConscript | 2 | ||||
| -rw-r--r-- | components/dfs/include/dfs_posix.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript index e88088b350..6ca534ef52 100644 --- a/components/dfs/SConscript +++ b/components/dfs/SConscript @@ -71,7 +71,7 @@ if 'RT_DFS_ELM_USE_LFN' in dir(rtconfig) and rtconfig.RT_DFS_ELM_USE_LFN: if 'RT_USING_DFS_ELMFAT' in dir(rtconfig) and rtconfig.RT_USING_DFS_ELMFAT:
src_local = src_local + elmfat
-if 'RT_USING_DFS_NFS' in dir(rtconfig) and rtconfig.RT_USING_DFS_NFS:
+if 'RT_USING_DFS_NFS' in dir(rtconfig) and rtconfig.RT_USING_DFS_NFS and rtconfig.RT_USING_LWIP:
src_local = src_local + nfs
path = path + [RTT_ROOT + '/components/dfs/filesystems/nfs']
diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 502fc87c9d..d59421fd8d 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -75,7 +75,6 @@ typedef struct int cur;
} DIR;
-#define stat _stat
#define statfs _statfs
#define dirent _dirent
|
