Android bustage from bug 602891 part A, revision dc021bc9929f. getpid() required <unistd.h>
authorBenjamin Smedberg <benjamin@smedbergs.us>
Wed, 17 Nov 2010 18:14:11 -0500
changeset 57840 94e93142bfb6912bf49c8b5e1cdf5a4c799270ca
parent 57839 35f8ec6fa9e632272bdb876eba8b756d240342e6
child 57841 5edec88ca944fe4aab1264f3f419adf5e01cb8db
push idunknown
push userunknown
push dateunknown
bugs602891
milestone2.0b8pre
Android bustage from bug 602891 part A, revision dc021bc9929f. getpid() required <unistd.h>
xpcom/glue/IntentionalCrash.h
--- a/xpcom/glue/IntentionalCrash.h
+++ b/xpcom/glue/IntentionalCrash.h
@@ -1,16 +1,18 @@
 #include <string>
 #include <sstream>
 #include <stdlib.h>
 #include <stdio.h>
 
 #ifdef XP_WIN
 #include <process.h>
 #define getpid _getpid
+#else
+#include <unistd.h>
 #endif
 
 #ifndef mozilla_IntentionalCrash_h
 #define mozilla_IntentionalCrash_h
 
 namespace mozilla {
 
 inline void