Skip to content

Commit

Permalink
Fix setlinebuf() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Aug 16, 2023
1 parent 3ab0a9a commit 9109e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 9109e9e

Please sign in to comment.