From c71828fb3369a4382e0680ca9f636f17fdd878e5 Mon Sep 17 00:00:00 2001 From: Dahua1992 <44988305+Dahua1992@users.noreply.github.com> Date: Tue, 13 Nov 2018 10:22:53 +0800 Subject: [PATCH] add #include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因 tm = gmtime_r(&now, &tm_tmp);报错 --- components/utilities/ulog/syslog/syslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utilities/ulog/syslog/syslog.c b/components/utilities/ulog/syslog/syslog.c index 15ebadeec2..c392156697 100644 --- a/components/utilities/ulog/syslog/syslog.c +++ b/components/utilities/ulog/syslog/syslog.c @@ -25,7 +25,7 @@ */ #ifdef ULOG_USING_SYSLOG - +#include #ifndef ULOG_SYSLOG_IDENT_MAX_LEN #define ULOG_SYSLOG_IDENT_MAX_LEN ULOG_FILTER_TAG_MAX_LEN #endif