浏览代码

add #include <sys/time.h>

原因 tm = gmtime_r(&now, &tm_tmp);报错
Dahua1992 6 年之前
父节点
当前提交
c71828fb33
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/utilities/ulog/syslog/syslog.c

+ 1 - 1
components/utilities/ulog/syslog/syslog.c

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