Problems porting sketch IDE Arduino Ver 2.3.2 for ESP32 Devkit V1 board in PIO 6.1.15 in VS Code 1.90.1

Uploading: Compilazione con PlatformIO (Watchdog Old e New).jpg…

As shown in the attached figure, importing on PIO a project that is correctly compiled with Arduino IDE 2.3.2 for the esp32doit-devkit-v board (sketch tested and working), there is an error of non-recognition of the esp_task_wdt_config_t ConfigWDT structure.
How can I solve the problem?
Any suggestion is very welcome.