mirror of https://github.com/ARMmbed/mbed-os.git
Filesystem: Removed dependency on unistd.h
Previously used to determine stdin/stdout/stderr filenos, however these are set by uspull/3762/head
parent
9299a88e8f
commit
b1a685125b
|
@ -51,7 +51,6 @@
|
|||
|
||||
#else
|
||||
# include <sys/stat.h>
|
||||
# include <sys/unistd.h>
|
||||
# include <sys/syslimits.h>
|
||||
# define PREFIX(x) x
|
||||
#endif
|
||||
|
@ -385,7 +384,7 @@ extern "C" long PREFIX(_flen)(FILEHANDLE fh) {
|
|||
|
||||
#if !defined(__ARMCC_VERSION) && !defined(__ICCARM__)
|
||||
extern "C" int _fstat(int fd, struct stat *st) {
|
||||
if ((STDOUT_FILENO == fd) || (STDERR_FILENO == fd) || (STDIN_FILENO == fd)) {
|
||||
if (fd < 3) {
|
||||
st->st_mode = S_IFCHR;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue