chenshuo / muduo

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

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

Closed Simonhancrew closed 5 months ago

Simonhancrew commented 6 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 6 months ago

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

Simonhancrew commented 6 months ago

@chenshuo pls take a look, thx

chenshuo commented 6 months ago

Please include instead.

Simonhancrew commented 6 months ago

Please include instead.

ok