fd_set fdset;
struct timeval tv;
#endif
-#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__))
+#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__) && !defined(__DOS__))
struct thread_entry threads[2048];
for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
threads[i].used = false;
#define SOCKADDR struct sockaddr_in6
#endif
-#define MAX_PORTS 1024
-#define MAX_VHOSTS 1024
-#define MAX_MODULES 1024
-#define MAX_DIRS 1024
+#define MAX_PORTS 128
+#define MAX_VHOSTS 128
+#define MAX_MODULES 128
+#define MAX_DIRS 128
#define MAX_MIME 4096
-#define MAX_ICON 1024
+#define MAX_ICON 128
#define MAX_INDEX 32
#define MAX_README 8