Merge pull request #5145 from enkiller/1011-2010

[bsp][simulator] Fix compilation errors
This commit is contained in:
Bernard Xiong 2021-10-12 06:02:19 +08:00 committed by GitHub
commit 907d948e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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