summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/sel_spd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/sel_spd.c')
-rw-r--r--nsprpub/pr/tests/sel_spd.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/nsprpub/pr/tests/sel_spd.c b/nsprpub/pr/tests/sel_spd.c
index 6c1704234..6e3f66fed 100644
--- a/nsprpub/pr/tests/sel_spd.c
+++ b/nsprpub/pr/tests/sel_spd.c
@@ -16,7 +16,22 @@
#include <errno.h>
#include <string.h>
-#define PORT_BASE 19000
+#if defined(XP_UNIX)
+#include <unistd.h>
+#endif
+
+#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 PORT_BASE 19000 PORT_INC_DO PORT_INC_3264
typedef struct timer_slot_t {
unsigned long d_connect;