summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-10-12 06:02:19 +0800
committerGitHub <[email protected]>2021-10-12 06:02:19 +0800
commit907d948e8d4beaa33f2d762ab018905cbf90cb52 (patch)
tree4c643835af613594b72ff09433cbd0c4ef29ceab
parent277bb736d7d4a7e6c32df107e550c2918bf95726 (diff)
parent08e5e9d25f22f450c2c1547c5fd0dfee5d93b8b7 (diff)
Merge pull request #5145 from enkiller/1011-2010
[bsp][simulator] Fix compilation errors
-rw-r--r--components/dfs/src/dfs_posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c
index ed3fdb2eeb..acc05fcd53 100644
--- a/components/dfs/src/dfs_posix.c
+++ b/components/dfs/src/dfs_posix.c
@@ -254,6 +254,7 @@ off_t lseek(int fd, off_t offset, int whence)
}
RTM_EXPORT(lseek);
+#ifndef _WIN32 /* we can not implement these functions */
/**
* this function is a POSIX compliant version, which will rename old file name
* to new file name.
@@ -280,6 +281,7 @@ int rename(const char *old_file, const char *new_file)
return 0;
}
RTM_EXPORT(rename);
+#endif
/**
* this function is a POSIX compliant version, which will unlink (remove) a
@@ -305,7 +307,6 @@ int unlink(const char *pathname)
}
RTM_EXPORT(unlink);
-#ifndef _WIN32 /* we can not implement these functions */
/**
* this function is a POSIX compliant version, which will get file information.
*
@@ -370,7 +371,6 @@ int fstat(int fildes, struct stat *buf)
return RT_EOK;
}
RTM_EXPORT(fstat);
-#endif
/**
* this function is a POSIX compliant version, which shall request that all data