diff --git a/src/tls.c b/src/tls.c index 2f6afe67..e564bdab 100644 --- a/src/tls.c +++ b/src/tls.c @@ -7,12 +7,10 @@ #include #include -#include -#if MBEDTLS_VERSION_NUMBER > 0x02070000 -#include -#else -#include -#endif + +// Different versions have those in different files, so declare here +int mbedtls_net_recv(void *ctx, unsigned char *buf, size_t len); +int mbedtls_net_send(void *ctx, const unsigned char *buf, size_t len); struct mg_tls { char *cafile; // CA certificate path