diff options
| author | Dahua1992 <[email protected]> | 2018-11-13 10:22:53 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-13 10:22:53 +0800 |
| commit | c71828fb3369a4382e0680ca9f636f17fdd878e5 (patch) | |
| tree | 153af163720d8db9dd6076b2249cf621d9112c04 | |
| parent | 302d00ec76270361c518f021e18e7d351f9081fa (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, 1 insertions, 1 deletions
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 <sys/time.h> #ifndef ULOG_SYSLOG_IDENT_MAX_LEN #define ULOG_SYSLOG_IDENT_MAX_LEN ULOG_FILTER_TAG_MAX_LEN #endif |
