From: Ralf Habacker Date: Mon, 10 May 2010 20:56:11 +0000 (+0200) Subject: Fixed assert raised with msvc 2008 on windows. X-Git-Tag: dbus-1.3.1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=892bb42550257d68659681290eee79ac7c38a4cf;p=thirdparty%2Fdbus.git Fixed assert raised with msvc 2008 on windows. --- diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c index 41a70399d..127e82d7c 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++) {