Browse Source

Move FD_SETSIZE definition to configure so it affects everywhere it needs to

Luke Dashjr 13 years ago
parent
commit
40bfb02ec4
4 changed files with 1 additions and 12 deletions
  1. 1 0
      configure.ac
  2. 0 4
      driver-modminer.c
  3. 0 4
      miner.c
  4. 0 4
      util.c

+ 1 - 0
configure.ac

@@ -92,6 +92,7 @@ case $target in
     DLOPEN_FLAGS=""
     WS2_LIBS="-lws2_32"
     AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
+    AC_DEFINE([FD_SETSIZE], [4096], [Maximum sockets before fd_set overflows])
     ;;
   *-*-cygwin*)
 	have_cygwin=true

+ 0 - 4
driver-modminer.c

@@ -10,10 +10,6 @@
 
 #include "config.h"
 
-#ifdef WIN32
-#define FD_SETSIZE 4096
-#endif
-
 #include <limits.h>
 #include <stdarg.h>
 #include <stdio.h>

+ 0 - 4
miner.c

@@ -12,10 +12,6 @@
 
 #include "config.h"
 
-#ifdef WIN32
-#define FD_SETSIZE 4096
-#endif
-
 #ifdef HAVE_CURSES
 #include <curses.h>
 #endif

+ 0 - 4
util.c

@@ -13,10 +13,6 @@
 
 #include "config.h"
 
-#ifdef WIN32
-#define FD_SETSIZE 4096
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>