Browse Source

[component][ulog] Fix a compile error when timestamp is enable.

armink 6 years ago
parent
commit
f28b9d83f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/utilities/ulog/ulog.c

+ 1 - 1
components/utilities/ulog/ulog.c

@@ -21,7 +21,7 @@
 #endif
 
 #ifdef ULOG_TIME_USING_TIMESTAMP
-#include <time.h>
+#include <sys/time.h>
 #endif
 
 #ifdef ULOG_USING_ASYNC_OUTPUT