Skip to content

Commit c71828f

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

File tree

1 file changed

+1
-1
lines changed
  • components/utilities/ulog/syslog

1 file changed

+1
-1
lines changed

components/utilities/ulog/syslog/syslog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
#ifdef ULOG_USING_SYSLOG
28-
28+
#include <sys/time.h>
2929
#ifndef ULOG_SYSLOG_IDENT_MAX_LEN
3030
#define ULOG_SYSLOG_IDENT_MAX_LEN ULOG_FILTER_TAG_MAX_LEN
3131
#endif

0 commit comments

Comments
 (0)