Skip to content

Commit 0df270b

Browse files
authored
add #include <sys/time.h>
原因tm = gmtime_r(&now, &tm_tmp);报错
1 parent c71828f commit 0df270b

File tree

1 file changed

+2
-0
lines changed
  • components/utilities/ulog/syslog

1 file changed

+2
-0
lines changed

components/utilities/ulog/syslog/syslog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
*/
2626

2727
#ifdef ULOG_USING_SYSLOG
28+
2829
#include <sys/time.h>
30+
2931
#ifndef ULOG_SYSLOG_IDENT_MAX_LEN
3032
#define ULOG_SYSLOG_IDENT_MAX_LEN ULOG_FILTER_TAG_MAX_LEN
3133
#endif

0 commit comments

Comments
 (0)