Fixed assert raised with msvc 2008 on windows.
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 10 May 2010 20:56:11 +0000 (22:56 +0200)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 10 May 2010 20:57:48 +0000 (22:57 +0200)
tools/dbus-monitor.c

index 41a7039..127e82d 100644 (file)
@@ -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++)
     {