소스 검색

[LWIP] update SConscript: add /src/include/posix to include path when RT_USING_DFS_NET not enable.

aozima 7 년 전
부모
커밋
bc2de526db
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      components/net/lwip-2.0.2/SConscript

+ 4 - 0
components/net/lwip-2.0.2/SConscript

@@ -67,6 +67,10 @@ path = [GetCurrentDir() + '/src',
     GetCurrentDir() + '/src/arch/include',
     GetCurrentDir() + '/src/include/netif']
 
+if not GetDepend('RT_USING_POSIX') or not GetDepend('RT_USING_DFS_NET'):
+    path += [GetCurrentDir() + '/src/include/posix']
+    print('include /src/include/posix')
+
 if GetDepend(['RT_LWIP_SNMP']):
     src += snmp_src
     path += [GetCurrentDir() + '/src/apps/snmp']