drivers uart_native_ptty: Set standard source macro appropriately

This file uses several functions which are extensions to the the
std C library. Let's explicity select one of the extensions
which includes it instead of relaying on somebody having
set it for this file somewhere else.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-12-28 11:46:18 +01:00 committed by Anas Nashif
commit eb38e8db31

View file

@ -5,6 +5,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#undef _XOPEN_SOURCE
/* Note: This is used only for interaction with the host C library, and is therefore exempt of
* coding guidelines rule A.4&5 which applies to the embedded code using embedded libraries
*/
#define _XOPEN_SOURCE 600
#include <stdbool.h>
#include <errno.h>
#include <stddef.h>