From 6b90a02bb4f8c24ffe8787f8ad00199f4d656b7f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 25 Jul 2019 15:53:55 +0300 Subject: [PATCH] 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 --- lib/libc/minimal/include/time.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libc/minimal/include/time.h b/lib/libc/minimal/include/time.h index 84c976f72c8..918ef864934 100644 --- a/lib/libc/minimal/include/time.h +++ b/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 /* * Conversion between civil time and UNIX time. The companion