mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/atmega_common: add struct timespec to time.h
This commit is contained in:
parent
b597700a67
commit
442634728f
9
cpu/atmega_common/include/vendor/time.h
vendored
9
cpu/atmega_common/include/vendor/time.h
vendored
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user