Fixed assert raised with msvc 2008 on windows.

This commit is contained in:
Ralf Habacker 2010-05-10 22:56:11 +02:00
parent 8cc9c399a4
commit 892bb42550

View 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++)
{