Fix setlinebuf() on Windows
This commit is contained in:
parent
3ab0a9a3fd
commit
9109e9e0e2
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user