From bf32e452d6a4819d2d1bf20e7608d80c3a857fe7 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 16 Mar 2023 09:26:07 +0100 Subject: [PATCH] fix(modem): warning in ap-2-pppos example when using lwip/napt Latest IDF added new napt API that support enabling NAPT based on netif pointer. Need to include "lwip/netif.h" --- components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c b/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c index 22ea76311..a6ac822d4 100644 --- a/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c +++ b/components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c @@ -14,6 +14,7 @@ #include "esp_log.h" #include "esp_idf_version.h" #include "nvs_flash.h" +#include "lwip/netif.h" #include "lwip/lwip_napt.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h"