diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-02-23 01:37:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-02-23 01:37:38 +0900 |
| commit | 8985d66e71f980e7d2765753800078f47761f1ba (patch) | |
| tree | 5d1b2f9eff3e68a76b28778df3aa1052883375c1 /src/SocketCore.cc | |
| parent | a82db8e4626a1551e0c89301ac1d47db2bbcfa03 (diff) | |
Fix compile error without TLS support
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index e73f5dcd..e6c94753 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -1329,11 +1329,15 @@ int SocketCore::getSocketRecvBufferSize() { return socketRecvBufferSize_; } size_t SocketCore::getRecvBufferedLength() const { +#ifdef ENABLE_SSL if (!tlsSession_) { return 0; } return tlsSession_->getRecvBufferedLength(); +#else // !ENABLE_SSL + return 0; +#endif // !ENABLE_SSL } std::vector<SockAddr> SocketCore::getInterfaceAddress(const std::string& iface, |
