From 3c42daee9c1b1898bbbdbaab1f32087339f5fd8c Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Wed, 3 Apr 2024 04:12:59 -0400 Subject: [PATCH] tests: posix: headers: fix undefined ref to zsock_socketpair Update prj.conf so that subsys/net/lib/sockets/socketpair.c is pulled into the build and zsock_socketpair() is properly defined. Signed-off-by: Chris Friedt --- tests/posix/headers/prj.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/posix/headers/prj.conf b/tests/posix/headers/prj.conf index e64b889585a00e..950a7d510ef103 100644 --- a/tests/posix/headers/prj.conf +++ b/tests/posix/headers/prj.conf @@ -10,6 +10,9 @@ CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_NET_SOCKETS=y CONFIG_NETWORKING=y +# for socketpair to work +CONFIG_NET_SOCKETPAIR=y + # for when CONFIG_POSIX_API is not selected CONFIG_PTHREAD_IPC=y CONFIG_POSIX_FS=y