mirror of https://github.com/ARMmbed/mbed-os.git
Fix sys/stat.h issue for unit tests on macOS
parent
0e89f9d6d9
commit
6335775c58
|
|
@ -24,6 +24,14 @@
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#if defined __has_include
|
||||||
|
# if __has_include (<sys/stat.h>)
|
||||||
|
# include <sys/stat.h>
|
||||||
|
# define HAVE_SYS_STAT_H
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
|
||||||
#define NAME_MAX 255
|
#define NAME_MAX 255
|
||||||
|
|
@ -362,7 +370,7 @@ namespace mbed {
|
||||||
#define STDOUT_FILENO 1
|
#define STDOUT_FILENO 1
|
||||||
#define STDERR_FILENO 2
|
#define STDERR_FILENO 2
|
||||||
|
|
||||||
#ifndef _STAT_VER
|
#ifndef HAVE_SYS_STAT_H
|
||||||
struct stat {
|
struct stat {
|
||||||
dev_t st_dev; ///< Device ID containing file
|
dev_t st_dev; ///< Device ID containing file
|
||||||
ino_t st_ino; ///< File serial number
|
ino_t st_ino; ///< File serial number
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue