summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/acceptread.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/acceptread.c')
-rw-r--r--nsprpub/pr/tests/acceptread.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/nsprpub/pr/tests/acceptread.c b/nsprpub/pr/tests/acceptread.c
index d7fe079c4..090b08455 100644
--- a/nsprpub/pr/tests/acceptread.c
+++ b/nsprpub/pr/tests/acceptread.c
@@ -14,7 +14,18 @@
#include <stdlib.h>
-#define DEFAULT_PORT 12273
+#ifdef DEBUG
+#define PORT_INC_DO +100
+#else
+#define PORT_INC_DO
+#endif
+#ifdef IS_64
+#define PORT_INC_3264 +200
+#else
+#define PORT_INC_3264
+#endif
+
+#define DEFAULT_PORT 12273 PORT_INC_DO PORT_INC_3264
#define GET "GET / HTTP/1.0\n\n"
static PRFileDesc *std_out, *err_out;
static PRIntervalTime write_dally, accept_timeout;