diff options
| author | Meco Man <[email protected]> | 2020-12-16 14:33:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-16 14:33:31 +0800 |
| commit | 504112694d225902ef4cdc18bf4c13ccc700e6f8 (patch) | |
| tree | 28bafcff9a2544711c9b07e39fd3fd1675171394 /components/libc/compilers/common | |
| parent | 5f6d3298eeadb59a2d946c18e95f0d59a6558063 (diff) | |
| parent | 95130a9000ed2611c98b5ac1bf81e80b8c466d70 (diff) | |
Merge pull request #5 from RT-Thread/master
pr
Diffstat (limited to 'components/libc/compilers/common')
| -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 */ |
