Browse Source

add #include <sys/time.h>

原因tm = gmtime_r(&now, &tm_tmp);报错
Dahua1992 6 years ago
parent
commit
0df270bfc5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      components/utilities/ulog/syslog/syslog.c

+ 2 - 0
components/utilities/ulog/syslog/syslog.c

@@ -25,7 +25,9 @@
  */
  */
 
 
 #ifdef ULOG_USING_SYSLOG
 #ifdef ULOG_USING_SYSLOG
+
 #include <sys/time.h>
 #include <sys/time.h>
+
 #ifndef ULOG_SYSLOG_IDENT_MAX_LEN
 #ifndef ULOG_SYSLOG_IDENT_MAX_LEN
 #define ULOG_SYSLOG_IDENT_MAX_LEN      ULOG_FILTER_TAG_MAX_LEN
 #define ULOG_SYSLOG_IDENT_MAX_LEN      ULOG_FILTER_TAG_MAX_LEN
 #endif
 #endif