Commit 25c37846 authored by Keith Packard's avatar Keith Packard Committed by Stephanos Ioannidis
Browse files

libc/picolibc: Set __LINUX_ERRNO_EXTENSIONS__ for picolibc



This makes sure extra errno values from Linux that Zephyr uses are
available.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent b3073f00
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@
zephyr_library()
zephyr_library_sources(libc-hooks.c)

# define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN
# used by the network stack
zephyr_compile_definitions(__LINUX_ERRNO_EXTENSIONS__)

if(NOT CONFIG_PICOLIBC_USE_MODULE)

  # Use picolibc provided with the toolchain