Browse Source

Bugfix: Only expect pipe() on UNIX

Luke Dashjr 14 years ago
parent
commit
f810ef7afc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

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