ESP8266 with custom LWIP

I have an ESP8266 project using framework-arduinoespressif8266 but I want to use a different esp-open-lwip library. Specifically the one from this repo.

I tried adding the source from the repo to my “lib” folder but I just got errors. It was a shot in the dark and didn’t work. I was hoping that if I include it in my project it would use it instead of the one in the framework. I really need the NAPT feature of this modified LWIP for my project. Just not sure how to do it in PlatformIO.

Anyone that can point me in the right direction to getting this setup would be greatly appreciated.

I think it is better to ask here Issues · esp8266/Arduino · GitHub