diff options
| author | mysterywolf <[email protected]> | 2020-12-04 20:16:56 +0800 |
|---|---|---|
| committer | mysterywolf <[email protected]> | 2020-12-04 20:16:56 +0800 |
| commit | 1ad70b20ad99833d25e0636e7065d8cdcabce388 (patch) | |
| tree | 4c450ae25e986673344eabba2e583f8605b26695 /components/libc/compilers/common/sys | |
| parent | 3634621815b4145c786cff2e22cfeae5b108e94f (diff) | |
[keil][libc]防止开启pthread功能后 keil报错
Diffstat (limited to 'components/libc/compilers/common/sys')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index 22f1c17f5e..952dbf32a5 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -36,6 +36,13 @@ struct timeval { }; #endif /* _TIMEVAL_DEFINED */ +#ifndef _TIMESPEC +#define _TIMESPEC +struct timespec { + time_t tv_sec; /* seconds */ + long tv_nsec; /* and nanoseconds */ +}; +#endif struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ |
