Bug 1055113 - Unbreak non-unified build on FreeBSD after bug 988816. r=swu, r=jduell, a=sledru
authorJan Beich <jbeich@vfemail.net>
Mon, 18 Aug 2014 11:59:00 -0400
changeset 217573 a79033353ab9f521f1099ef6cc5f0ce80aad510b
parent 217572 5a9669ba5940eb47b39316e0ec383dbbaf521a91
child 217574 a93ff5caef5fb5edfe476b4e984db3605d47e8b3
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersswu, jduell, sledru
bugs1055113, 988816
milestone33.0a2
Bug 1055113 - Unbreak non-unified build on FreeBSD after bug 988816. r=swu, r=jduell, a=sledru
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
 //-----------------------------------------------------------------------------