Skip to content

Commit 16ff8ca

Browse files
committed
libc: newlib: Enable extended linux errno defines
We utilize defines like -ESHUTDOWN in the network stack. To support this errno value with newlib we need to enable __LINUX_ERRNO_EXTENSIONS__. Signed-off-by: Kumar Gala <[email protected]>
1 parent 57fbc66 commit 16ff8ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/libc/newlib/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ if(LIBC_LIBRARY_DIR)
1515
set(LIBC_LIBRARY_DIR_FLAG -L${LIBC_LIBRARY_DIR})
1616
endif()
1717

18+
# define __LINUX_ERRNO_EXTENSIONS__ so we get errno defines like -ESHUTDOWN
19+
# used by the network stack
20+
zephyr_compile_definitions(__LINUX_ERRNO_EXTENSIONS__)
21+
1822
zephyr_link_libraries(
1923
m
2024
c

0 commit comments

Comments
 (0)