mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
Make selfserv build for Darwin.
This commit is contained in:
parent
2520f79e24
commit
4f733e25ac
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user