diff --git a/.travis.yml b/.travis.yml index e9b80f91..92cdb3d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ matrix: script: make mg_prefix - os: linux compiler: clang - script: cat /usr/include/mbedtls/version.h ; grep -r mbedtls_net_send /usr/include/mbedtls/ + script: cat /usr/include/mbedtls/net.h ; grep -r mbedtls_net_send /usr/include/mbedtls/ - os: linux compiler: msvc98 script: make vc98 vc2017 diff --git a/mongoose.c b/mongoose.c index b04e9022..1c41ef37 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2924,8 +2924,10 @@ void mg_timer_poll(unsigned long now_ms) { #include #include #include -#if MBEDTLS_VERSION_MINOR > 22 +#if MBEDTLS_VERSION_NUMBER > 0x02070000 #include +#else +#include #endif struct mg_tls {