From 442634728ff9db4c28e931eb2ea8706eb226606e Mon Sep 17 00:00:00 2001 From: Matthew Blue Date: Sat, 19 May 2018 04:40:28 -0400 Subject: [PATCH] cpu/atmega_common: add struct timespec to time.h --- cpu/atmega_common/include/vendor/time.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cpu/atmega_common/include/vendor/time.h b/cpu/atmega_common/include/vendor/time.h index bbb7fc8960..64b0d891af 100644 --- a/cpu/atmega_common/include/vendor/time.h +++ b/cpu/atmega_common/include/vendor/time.h @@ -501,6 +501,15 @@ extern "C" { */ unsigned long lm_sidereal(const time_t * timer); + /** + Definition of struct timespec for the atmega + NOTE: Added for RIOT compatibility and standard compliance + */ + struct timespec { + time_t tv_sec; + long tv_nsec; + }; + /* @} */ #ifdef __cplusplus }