Browse Source

update poll sconscript

Meco Man 3 years ago
parent
commit
153ab5c238
1 changed files with 5 additions and 2 deletions
  1. 5 2
      components/libc/posix/io/poll/SConscript

+ 5 - 2
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')