Browse Source

Merge branch 'work_restart' into bfgminer

Luke Dashjr 13 years ago
parent
commit
5f7ca9e6a3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -5246,6 +5246,7 @@ begin_bench:
 
 			if (!thr->work_restart_fd)
 			{
+#if defined(unix)
 				int pipefd[2];
 				if (!pipe(pipefd))
 				{
@@ -5253,6 +5254,7 @@ begin_bench:
 					thr->_work_restart_fd_w = pipefd[1];
 				}
 				else
+#endif
 					thr->work_restart_fd = -1;
 			}