Skip to content

Commit 650d108

Browse files
galakcfriedt
authored andcommitted
posix: eventfd: depends on polling
Have eventfd Kconfig select POLL is the code utilizes the polling API. We get a link error for tests/lib/fdtable/libraries.os.fdtable when building on arm-clang without this. Signed-off-by: Kumar Gala <[email protected]> (cherry picked from commit f215e44)
1 parent 25616b1 commit 650d108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/posix/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ config APP_LINK_WITH_POSIX_SUBSYS
112112
config EVENTFD
113113
bool "Enable support for eventfd"
114114
depends on !ARCH_POSIX
115+
select POLL
116+
default y if POSIX_API
115117
help
116118
Enable support for event file descriptors, eventfd. An eventfd can
117119
be used as an event wait/notify mechanism together with POSIX calls

0 commit comments

Comments
 (0)