summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-05-10 22:56:11 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-05-10 22:57:48 +0200
commit892bb42550257d68659681290eee79ac7c38a4cf (patch)
tree9bc2f9c2c535190852f6195dc16a7f9ff08c3575
parent8cc9c399a4c1f14c1a41d996c925a944483ed5cd (diff)
Fixed assert raised with msvc 2008 on windows.
-rw-r--r--tools/dbus-monitor.c5
1 files changed, 5 insertions, 0 deletions
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++)
{