diff options
| author | Dahua1992 <[email protected]> | 2018-11-13 10:55:05 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-13 10:55:05 +0800 |
| commit | 0df270bfc5e4f644a267179b09d27b3422348d65 (patch) | |
| tree | af4e495441d37180b89f61ea436af6919d49610d | |
| parent | c71828fb3369a4382e0680ca9f636f17fdd878e5 (diff) | |
add #include <sys/time.h>
原因tm = gmtime_r(&now, &tm_tmp);报错
| -rw-r--r-- | components/utilities/ulog/syslog/syslog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/utilities/ulog/syslog/syslog.c b/components/utilities/ulog/syslog/syslog.c index c392156697..7586148fbf 100644 --- a/components/utilities/ulog/syslog/syslog.c +++ b/components/utilities/ulog/syslog/syslog.c @@ -25,7 +25,9 @@ */ #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 |
