diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2010-05-10 22:56:11 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2010-05-10 22:57:48 +0200 |
commit | 892bb42550257d68659681290eee79ac7c38a4cf (patch) | |
tree | 9bc2f9c2c535190852f6195dc16a7f9ff08c3575 /tools | |
parent | 8cc9c399a4c1f14c1a41d996c925a944483ed5cd (diff) | |
download | dbus-892bb42550257d68659681290eee79ac7c38a4cf.tar.gz |
Fixed assert raised with msvc 2008 on windows.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-monitor.c | 5 |
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++) { |