Skip to content
Permalink
Browse files

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>
  • Loading branch information...
pfalcon authored and galak committed Jul 25, 2019
1 parent b7bb48e commit 6b90a02bb4f8c24ffe8787f8ad00199f4d656b7f
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/libc/minimal/include/time.h
@@ -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

0 comments on commit 6b90a02

Please sign in to comment.
You can’t perform that action at this time.