diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index e4d60d2d11576c320e44c9a4bab7a40115110208..5bf5bc5e92f418700b1a7616f1527aa032ce3feb 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -38,7 +38,7 @@ struct timeval { }; #endif /* _TIMEVAL_DEFINED */ -#if !defined __GNUC__ && !defined __ICCARM__ +#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)) && !defined (__ICCARM__) struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */