Bug 821249, fix Android WebRTC build bustage in DataChannel.cpp, r=jesup
authorDan Mosedale <dmose@mozilla.org>
Sat, 15 Dec 2012 10:44:22 -0800
changeset 116158 bb6f5a9bcd2759d64f26c4a7651306d949915ab5
parent 116157 e46312a78e469c14f215dfa108c4e7353f857110
child 116159 c8a1314aa449e76e5338f4b8a389bc16e29f831e
push id19766
push userdmosedale@mozilla.com
push dateSat, 15 Dec 2012 18:50:35 +0000
treeherdermozilla-inbound@bb6f5a9bcd27 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs821249
milestone20.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 821249, fix Android WebRTC build bustage in DataChannel.cpp, r=jesup
netwerk/sctp/datachannel/DataChannel.cpp
--- a/netwerk/sctp/datachannel/DataChannel.cpp
+++ b/netwerk/sctp/datachannel/DataChannel.cpp
@@ -388,17 +388,17 @@ public:
     : mConnection(aConnection) {}
 
   NS_IMETHOD Run()
   {
     struct sockaddr_conn addr;
 
     memset(&addr, 0, sizeof(addr));
     addr.sconn_family = AF_CONN;
-#if !defined(__Userspace_os_Linux) && !defined(__Userspace_os_Windows)
+#if defined(__Userspace_os_Darwin)
     addr.sconn_len = sizeof(addr);
 #endif
     addr.sconn_port = htons(mConnection->mLocalPort);
 
     int r = usrsctp_bind(mConnection->mMasterSocket, reinterpret_cast<struct sockaddr *>(&addr),
                          sizeof(addr));
     if (r < 0) {
       LOG(("usrsctp_bind failed: %d", r));