提交 9109e9e0 编写于 作者: R Roger A. Light

Fix setlinebuf() on Windows

上级 3ab0a9a3
......@@ -131,7 +131,7 @@ int log__init(struct mosquitto__config *config)
}
}
if(log_destinations & MQTT3_LOG_STDOUT){
setlinebuf(stdout);
setvbuf(stdout, NULL, _IOLBF, 0);
}
#ifdef WITH_DLT
if(log_destinations & MQTT3_LOG_DLT){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册