From 90503ad1ff91ff1a9844624ce7daf32a4ec5cf62 Mon Sep 17 00:00:00 2001 From: orhaneee Date: Thu, 2 May 2019 17:37:56 +0300 Subject: [PATCH] fix(ti-compat): fixed compat header POSIX headers' path has been changed. --- compat/minmea_compat_ti-rtos.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/compat/minmea_compat_ti-rtos.h b/compat/minmea_compat_ti-rtos.h index 1a79fa6..ed7225f 100644 --- a/compat/minmea_compat_ti-rtos.h +++ b/compat/minmea_compat_ti-rtos.h @@ -6,13 +6,22 @@ * published by Sam Hocevar. See the COPYING file for more details. */ -#if defined(__TI_ARM__) +#ifndef MINMEA_COMPAT_H_ +#define MINMEA_COMPAT_H_ -// timespec definition -#include +#if defined(__TI_ARM__) + #include + #include +#elif defined(__IAR_SYSTEMS_ICC__) + #include + #include +#elif defined(gcc) + #include + #include +#endif /* __TI_ARM__ */ #define timegm mktime -#endif +#endif /* MINMEA_COMPAT_H */ /* vim: set ts=4 sw=4 et: */