Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
8310aba4
K
Kernel Liteos M
项目概览
OpenHarmony
/
Kernel Liteos M
大约 1 年 前同步成功
通知
20
Star
28
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos M
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8310aba4
编写于
11月 24, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 24, 2021
浏览文件
操作
浏览文件
下载
差异文件
!410 宏_BSD_SOURCE放在头文件中定义,其他模块使用lwip头文件时,可不用单独再定义
Merge pull request !410 from 刘建东/master
上级
ed64fb1b
57208d6e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
2 deletion
+8
-2
components/net/lwip-2.1/BUILD.gn
components/net/lwip-2.1/BUILD.gn
+0
-1
components/net/lwip-2.1/porting/include/arch/cc.h
components/net/lwip-2.1/porting/include/arch/cc.h
+4
-0
components/net/lwip-2.1/porting/include/lwip/netdb.h
components/net/lwip-2.1/porting/include/lwip/netdb.h
+1
-0
components/net/lwip-2.1/porting/include/lwip/netif.h
components/net/lwip-2.1/porting/include/lwip/netif.h
+1
-0
components/net/lwip-2.1/porting/include/lwip/sockets.h
components/net/lwip-2.1/porting/include/lwip/sockets.h
+1
-0
components/net/lwip-2.1/porting/src/sockets_porting.c
components/net/lwip-2.1/porting/src/sockets_porting.c
+1
-1
未找到文件。
components/net/lwip-2.1/BUILD.gn
浏览文件 @
8310aba4
...
...
@@ -34,7 +34,6 @@ module_switch = defined(LOSCFG_NET_LWIP_SACK)
module_name = "lwip"
kernel_module(module_name) {
sources = LWIP_PORTING_FILES + LWIPNOAPPSFILES - [ "$LWIPDIR/api/sockets.c" ]
defines = [ "_BSD_SOURCE=1" ]
include_dirs = [ "//utils/native/lite/include" ]
}
...
...
components/net/lwip-2.1/porting/include/arch/cc.h
浏览文件 @
8310aba4
...
...
@@ -106,4 +106,8 @@ extern void LwipLogPrintf(const char *fmt, ...);
#define init_waitqueue_head(...)
#define poll_check_waiters(...)
#ifndef _BSD_SOURCE
#define _BSD_SOURCE 1
#endif
#endif
/* _LWIP_PORTING_CC_H_ */
components/net/lwip-2.1/porting/include/lwip/netdb.h
浏览文件 @
8310aba4
...
...
@@ -32,6 +32,7 @@
#ifndef _LWIP_PORTING_NETDB_H_
#define _LWIP_PORTING_NETDB_H_
#include "lwip/arch.h"
#include <netdb.h>
#include_next <lwip/netdb.h>
...
...
components/net/lwip-2.1/porting/include/lwip/netif.h
浏览文件 @
8310aba4
...
...
@@ -32,6 +32,7 @@
#ifndef _LWIP_PORTING_NETIF_H_
#define _LWIP_PORTING_NETIF_H_
#include "lwip/arch.h"
#include <net/if.h>
#include <netinet/ip.h>
...
...
components/net/lwip-2.1/porting/include/lwip/sockets.h
浏览文件 @
8310aba4
...
...
@@ -32,6 +32,7 @@
#ifndef _LWIP_PORTING_SOCKETS_H_
#define _LWIP_PORTING_SOCKETS_H_
#include "lwip/arch.h"
#include <sys/socket.h>
#include <poll.h>
#include <netinet/tcp.h>
...
...
components/net/lwip-2.1/porting/src/sockets_porting.c
浏览文件 @
8310aba4
...
...
@@ -704,7 +704,7 @@ static u8_t lwip_ioctl_impl(const struct lwip_sock *sock, long cmd, void *argp)
{
u8_t
err
=
0
;
struct
ifreq
*
ifr
=
(
struct
ifreq
*
)
argp
;
bool
is_ipv6
=
0
;
u8_t
is_ipv6
=
0
;
/* allow it only on IPv6 sockets... */
is_ipv6
=
NETCONNTYPE_ISIPV6
((
unsigned
int
)(
sock
->
conn
->
type
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录