Bug 942921 - Explicitly include unistd.h for getpid() for non-Linux debug builds. r=smaug

This commit is contained in:
Jan Beich
2013-11-26 17:25:24 -05:00
parent 65b18657db
commit 68fc00572b
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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";