From cbc77d2b7cbf19c2eb80bfe0b6100a0b9b8c1f06 Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 2 Nov 2011 16:52:48 +0000 Subject: Update to compile under MinGW --- tools/ivyprobe.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools/ivyprobe.c') diff --git a/tools/ivyprobe.c b/tools/ivyprobe.c index 2b21da0..80e6939 100644 --- a/tools/ivyprobe.c +++ b/tools/ivyprobe.c @@ -409,14 +409,20 @@ int main(int argc, char *argv[]) if ( regex_file ) BindMsgOfFile( regex_file ); for (; optind < argc; optind++) + { + printf("Binding to '%s'\n", argv[optind] ); IvyBindMsg (Callback, NULL, argv[optind]); + } - if (wait_count == 0) -#ifndef WIN32 + +#ifdef WIN32 + printf("Stdin not compatible with select , select only accept socket on Windows\n"); +#else /* Stdin not compatible with select , select only accept socket */ + if (wait_count == 0) IvyChannelAdd (0, NULL, NULL, HandleStdin, NULL); #endif - + IvyStart (bus); if (timer_test) { -- cgit v1.1