Commit 1cbfcba2c1d7405e0d156cc1f810204c63f42f6c

Znort 987 2011-08-11T13:24:20

Disable --monitor-stderr on WIN32

diff --git a/main.c b/main.c
index 4d184d8..b78761f 100644
--- a/main.c
+++ b/main.c
@@ -598,9 +598,12 @@ static struct opt_table opt_config_table[] = {
 			"Use system log for output messages (default: standard error)"),
 #endif
 
+#if !defined(WIN32)
 	OPT_WITH_ARG("--monitor|-m",
 		    opt_set_charp, NULL, &opt_stderr_cmd,
                     "Use custom pipe cmd for output messages"),
+#endif // !WIN32
+
 	OPT_WITHOUT_ARG("--text-only|-T",
                     opt_set_invbool, &use_curses,
                     "Disable ncurses formatted screen output"),
@@ -3709,6 +3712,7 @@ out:
 	return ret;
 }
 
+#if !defined(WIN32)
 static void fork_monitor()
 {
         // Make a pipe: [readFD, writeFD]
@@ -3773,6 +3777,7 @@ static void fork_monitor()
                 exit(1);
         }
 }
+#endif // !WIN32
 
 int main (int argc, char *argv[])
 {
@@ -3927,8 +3932,10 @@ int main (int argc, char *argv[])
 		openlog(PROGRAM_NAME, LOG_PID, LOG_USER);
 #endif
 
+#if !defined(WIN32)
         if (opt_stderr_cmd)
                 fork_monitor();
+#endif // !WIN32
 
 	mining_threads = opt_n_threads + gpu_threads;