Browse Source

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

aozima 7 năm trước cách đây
mục cha
commit
bc2de526db
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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']