Make selfserv build for Darwin.

This commit is contained in:
nelsonb%netscape.com 2002-11-14 23:33:24 +00:00
parent 2520f79e24
commit 4f733e25ac

View File

@ -1361,12 +1361,24 @@ beAGoodParent(int argc, char **argv, int maxProcs, PRFileDesc * listen_sock)
}
#ifdef DEBUG_nelsonb
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
#define SSL_GETPID getpid
#elif defined(_WIN32_WCE)
#define SSL_GETPID GetCurrentProcessId
#elif defined(WIN32)
extern int __cdecl _getpid(void);
#define SSL_GETPID _getpid
#else
#define SSL_GETPID() 0
#endif
void
WaitForDebugger(void)
{
int waiting = 12;
int myPid = _getpid();
int myPid = SSL_GETPID();
PRIntervalTime nrval = PR_SecondsToInterval(5);
while (waiting) {