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
|
@ -34,10 +34,7 @@ struct tm {
|
|||
typedef int64_t time_t;
|
||||
typedef int32_t suseconds_t;
|
||||
|
||||
struct timespec {
|
||||
time_t tv_sec;
|
||||
long tv_nsec;
|
||||
};
|
||||
#include <sys/_timespec.h>
|
||||
|
||||
/*
|
||||
* Conversion between civil time and UNIX time. The companion
|
||||
|
|
Loading…
Reference in New Issue