1 /*
2  * Copyright © 2021, Keith Packard <keithp@keithp.com>
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "picolibc-hooks.h"
8 
9 #ifndef CONFIG_LIBC_ERRNO
10 
11 /*
12  * Picolibc needs to be able to declare this itself so that the library
13  * doesn't end up needing zephyr header files. That means using a regular
14  * function instead of an inline.
15  */
z_errno_wrap(void)16 int *z_errno_wrap(void)
17 {
18 	return z_errno();
19 }
20 
21 #endif
22