Bug 1055113 - Unbreak non-unified build on FreeBSD after bug 988816. r=swu, r=jduell
authorJan Beich <jbeich@vfemail.net>
Mon, 18 Aug 2014 11:59:00 -0400
changeset 200267 bb91698edd20cc16dbd3613105bcaa9f19b4b71a
parent 200266 2ec59bdec08879b5c2cfd0ab50f6e62cfdb12d7a
child 200268 241f31c1ad6286179e4f86eb8480f5457eb5ae37
push id47860
push userryanvm@gmail.com
push dateTue, 19 Aug 2014 12:42:37 +0000
treeherdermozilla-inbound@bb91698edd20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersswu, jduell
bugs1055113, 988816
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1055113 - Unbreak non-unified build on FreeBSD after bug 988816. r=swu, r=jduell
netwerk/ipc/RemoteOpenFileChild.cpp
--- a/netwerk/ipc/RemoteOpenFileChild.cpp
+++ b/netwerk/ipc/RemoteOpenFileChild.cpp
@@ -15,16 +15,20 @@
 #include "nsJARProtocolHandler.h"
 #include "nsIRemoteOpenFileListener.h"
 #include "nsProxyRelease.h"
 #include "SerializedLoadContext.h"
 
 // needed to alloc/free NSPR file descriptors
 #include "private/pprio.h"
 
+#if !defined(XP_WIN) && !defined(MOZ_WIDGET_COCOA)
+#include <unistd.h>
+#endif
+
 using namespace mozilla::ipc;
 
 namespace mozilla {
 namespace net {
 
 //-----------------------------------------------------------------------------
 // Helper class to dispatch events async on windows/OSX
 //-----------------------------------------------------------------------------