diff --git a/components/libc/compilers/dlib/sys/time.h b/components/libc/compilers/dlib/sys/time.h index ac527450640a209237a4b56fecfa86ce08996f3a..1acb8360326cf8d4455f6860cd67a86089dd31ec 100644 --- a/components/libc/compilers/dlib/sys/time.h +++ b/components/libc/compilers/dlib/sys/time.h @@ -20,7 +20,10 @@ struct timeval { }; #endif /* _TIMEVAL_DEFINED */ -#if defined ( __ICCARM__ ) && (__VER__ >= 8011002) +/* + * Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001. + */ +#if defined ( __ICCARM__ ) && (__VER__ >= 8010001) #define _TIMESPEC_DEFINED #endif