#12745: [Patch] SMTP.cpp: fix gcc6 build
-----------------------------+----------------------------
Reporter: mt | Owner: czeidler
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Mail Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
-----------------------------+----------------------------
Comment (by axeld):
I think I'd prefer to move the send() call into either a local macro, or
an extra method, like this:
{{{
ssize_t
SMTPProtocol::_SendData(const void* data, size_t length)
{
#ifdef USE_SSL
if (use_ssl)
return SSL_write(ssl, data, length);
#endif
return send(fSocket, data, length);
}
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12745#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.