From 8f994b9dce3fb563370cc0ed4958b907016ccb57 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 30 Aug 2017 12:34:07 +0800 Subject: [PATCH] feat(time): enable the macro timeradd, timersub, timerclear, etc. TW#14488 Closes https://github.com/espressif/esp-idf/issues/867 --- components/newlib/include/sys/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/newlib/include/sys/time.h b/components/newlib/include/sys/time.h index be16497fc5..8e3ef80881 100644 --- a/components/newlib/include/sys/time.h +++ b/components/newlib/include/sys/time.h @@ -20,7 +20,7 @@ struct timeval { }; /* BSD time macros used by RTEMS code */ -#if defined (__rtems__) || defined (__CYGWIN__) +#if defined (__rtems__) || defined (__CYGWIN__) || defined(__XTENSA__) /* Convenience macros for operations on timevals. NOTE: `timercmp' does not work for >= or <=. */