add #include <sys/time.h>

原因tm = gmtime_r(&now, &tm_tmp);报错
This commit is contained in:
Dahua1992 2018-11-13 10:55:05 +08:00 committed by GitHub
parent c71828fb33
commit 0df270bfc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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