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:
parent
1b94864a87
commit
eb38e8db31
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue