From 892bb42550257d68659681290eee79ac7c38a4cf Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 10 May 2010 22:56:11 +0200 Subject: Fixed assert raised with msvc 2008 on windows. --- tools/dbus-monitor.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c index 41a70399..127e82d7 100644 --- a/tools/dbus-monitor.c +++ b/tools/dbus-monitor.c @@ -232,7 +232,12 @@ main (int argc, char *argv[]) * do dbus-monitor > file, then send SIGINT via Control-C, they * don't lose the last chunk of messages. */ + +#ifdef DBUS_WIN + setvbuf (stdout, NULL, _IONBF, 0); +#else setvbuf (stdout, NULL, _IOLBF, 0); +#endif for (i = 1; i < argc; i++) { -- cgit v1.2.3