summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-09-23 11:09:03 +0000
committerqiuyiuestc <[email protected]>2010-09-23 11:09:03 +0000
commit8d42ca4e7101c789f5dbd5d3e80706855ac79b26 (patch)
treeef5a22099bf693ddf46b4208ae94e394788f4da3 /components/dfs
parenta6675897486ae41f892f849b508aeb848b55e901 (diff)
delete #define stat _stat
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@932 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/SConscript2
-rw-r--r--components/dfs/include/dfs_posix.h1
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