diff options
author | Alan Kligman <ack@mozilla.com> | 2013-05-30 12:46:25 -0400 |
---|---|---|
committer | Alan Kligman <ack@mozilla.com> | 2013-05-30 12:46:25 -0400 |
commit | 80decaceb1371a5eb54a4b55b140bc8f4f8259b5 (patch) | |
tree | 1f61f24c8f54ed2a883b8dc44dfd01aaeaf6ae91 | |
parent | 7cc82b2cfda622846a21014f4120ce8058eab537 (diff) |
Don't include webrtc-specific code for websockets builds.
-rw-r--r-- | src/library.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 7422156d..7f9ae6e5 100644 --- a/src/library.js +++ b/src/library.js @@ -7114,9 +7114,13 @@ LibraryManager.library = { // sockets. Note that the implementation assumes all sockets are always // nonblocking // ========================================================================== +#if SOCKET_WEBRTC $Sockets__deps: ['__setErrNo', '$ERRNO_CODES', function() { return 'var SocketIO = ' + read('socket.io.js') + ';\n' }, function() { return 'var Peer = ' + read('wrtcp.js') + ';\n' }], +#else + $Sockets__deps: ['__setErrNo', '$ERRNO_CODES'], +#endif $Sockets: { BUFFER_SIZE: 10*1024, // initial size MAX_BUFFER_SIZE: 10*1024*1024, // maximum size we will grow the buffer |