Bug 942921 - Explicitly include unistd.h for getpid() for non-Linux debug builds. r=smaug
This commit is contained in:
@@ -198,6 +198,8 @@ static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
|
|||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#define getpid _getpid
|
#define getpid _getpid
|
||||||
|
#else
|
||||||
|
#include <unistd.h> // for getpid()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
|
|||||||
@@ -238,13 +238,11 @@ class nsIScriptTimeoutHandler;
|
|||||||
static PRLogModuleInfo* gDOMLeakPRLog;
|
static PRLogModuleInfo* gDOMLeakPRLog;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef XP_LINUX
|
|
||||||
#include <unistd.h> // for getpid()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#define getpid _getpid
|
#define getpid _getpid
|
||||||
|
#else
|
||||||
|
#include <unistd.h> // for getpid()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char kStorageEnabled[] = "dom.storage.enabled";
|
static const char kStorageEnabled[] = "dom.storage.enabled";
|
||||||
|
|||||||
Reference in New Issue
Block a user