Mbed web based (online) compiler does not detect #include <sys/types> file

I am using Mbed OS 6.5.0 for development. I am facing an issue with an inclusion of <sys/types.h> file, which I suppose is standard library file in the ARM GCC compiler. The below error is thrown:


The issue doesn’t occur when using mbed-os with any offline compiler (e.g. VisualGDB). The GCC toolchain used in offline compiler is “GNU Arm Embedded version 9 (9-2019-q4-major)”

Has anyone faced this issue Or does someone know how to resolve this problem?