From 033deed807f6c7a6895425cf93ddc9f82bcadb5e Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 4 Jul 2018 12:29:42 +0200 Subject: [PATCH] tcp_isn: fix building with PPP support disabled and hook disabled --- addons/tcp_isn/tcp_isn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/tcp_isn/tcp_isn.c b/addons/tcp_isn/tcp_isn.c index fba2078..69a931e 100644 --- a/addons/tcp_isn/tcp_isn.c +++ b/addons/tcp_isn/tcp_isn.c @@ -75,6 +75,8 @@ #include "lwip/sys.h" #include +#ifdef LWIP_HOOK_TCP_ISN + /* pull in md5 of ppp? */ #include "netif/ppp/ppp_opts.h" #if !PPP_SUPPORT || (!LWIP_USE_EXTERNAL_POLARSSL && !LWIP_USE_EXTERNAL_MBEDTLS) @@ -176,3 +178,5 @@ lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port, /* Add the current time in 4-microsecond units. */ return isn + base_time + sys_now() * 250; } + +#endif /* LWIP_HOOK_TCP_ISN */