libc: minimal: time.h: Don't (re)define struct timespec.
By the latest convention, libc's define struct timespec in sys/_timespec.h. This is consistent with Newlib and ensures about errors due to redefinitions. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
b7bb48eeac
commit
6b90a02bb4
1 changed files with 1 additions and 4 deletions
|
@ -34,10 +34,7 @@ struct tm {
|
||||||
typedef int64_t time_t;
|
typedef int64_t time_t;
|
||||||
typedef int32_t suseconds_t;
|
typedef int32_t suseconds_t;
|
||||||
|
|
||||||
struct timespec {
|
#include <sys/_timespec.h>
|
||||||
time_t tv_sec;
|
|
||||||
long tv_nsec;
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Conversion between civil time and UNIX time. The companion
|
* Conversion between civil time and UNIX time. The companion
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue