Common: Fix broken compilation for trees without the PISTACHE_USE_SSL option

Due to a brain-lag on my end, I've introduced a regression in commit
44e40478, because a SSL utility function
was compiling whether or not the SSL was enabled. It is now fixed,
apologies.

Pull Request: https://github.com/oktal/pistache/pull/623
Fixes: https://github.com/oktal/pistache/issues/621
Fixes: https://github.com/oktal/pistache/issues/622

Fork: https://git.mobley.ne02ptzero.me/~louis/pistacheSigned-off-by: default avatarLouis Solofrizzo <lsolofrizzo@online.net>
parent dd5e155d
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <pistache/peer.h> #include <pistache/peer.h>
#include <unistd.h> #include <unistd.h>
#ifdef PISTACHE_USE_SSL
ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count) ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count)
{ {
unsigned char buffer[4096] = { 0 }; unsigned char buffer[4096] = { 0 };
...@@ -33,3 +35,5 @@ ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count) ...@@ -33,3 +35,5 @@ ssize_t SSL_sendfile(SSL *out, int in, off_t *offset, size_t count)
return written; return written;
} }
#endif /* PISTACHE_USE_SSL */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment