_fdev_setup_write

Hello, I’m trying to use the ttn_otaa example from de lmic arduino library and when I verify the code, i get the following error message

Documents\Arduino\libraries\LMIC-Arduino\src\hal\hal.cpp:223:50: error: ‘_FDEV_SETUP_WRITE’ was not declared in this scope
open_memstream(&uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE);
The VScode already suggests to change the fdev_setup_stream for open_memstream and I already did it. What can I do to fix this?

Best Regards