diff --git a/components/libc/posix/io/poll/SConscript b/components/libc/posix/io/poll/SConscript index 47f1722ed3790c6c1fd1cd0c350f4b4e26116467..7d82ade035b12530edf832ab5b10d9dfe3f2bbfc 100644 --- a/components/libc/posix/io/poll/SConscript +++ b/components/libc/posix/io/poll/SConscript @@ -3,9 +3,12 @@ from building import * cwd = GetCurrentDir() -src = ['poll.c'] +src = [] CPPPATH = [cwd] -group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX_POLL'], CPPPATH = CPPPATH) +if GetDepend('RT_USING_POSIX_POLL'): + src += ['poll.c'] + +group = DefineGroup('POSIX', src, depend = [], CPPPATH = CPPPATH) Return('group')