chenshuo / muduo

Event-driven network library for multi-threaded Linux server in C++11
https://github.com/chenshuo/muduo
Other
14.88k stars 5.18k forks source link

[FIX] compile: missing <time.h> cause compile failure #705

Closed Simonhancrew closed 8 months ago

Simonhancrew commented 9 months ago
muduo/muduo/base/Timestamp.cc:35:13: error: aggregate ‘tm tm_time’ has incomplete type and cannot be defined
   35 |   struct tm tm_time;

I notice a compile error in gcc13.2.1, soime header missing

ggandycong commented 9 months ago

刘德聪,已经收到你的邮件,请你放心 祝你生活愉快,笑口常开

Simonhancrew commented 9 months ago

@chenshuo pls take a look, thx

chenshuo commented 8 months ago

Please include instead.

Simonhancrew commented 8 months ago

Please include instead.

ok