WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
lwip_adapt.h
浏览该文件的文档.
1
8#ifndef LWIP_ADAPT_H
9#define LWIP_ADAPT_H
10
11#if defined(WS_IOT_LWIP_C)
12#include "lwip/sockets.h"
13
14#undef _GNU_SOURCE
15#undef IFNAMSIZ
16
17#define read(fd, buf, count) lwip_read(fd, buf, count)
18#define write(fd, buf, count) lwip_write(fd, buf, count)
19
20#define select(nfds, readfds, writefds, exceptfds, timeout) \
21 lwip_select(nfds, readfds, writefds, exceptfds, timeout)
22
23#define fcntl(fd, cmd, ...) lwip_fcntl(fd, cmd, 0)
24#define close(fd) lwip_close(fd)
25#endif
26
27#endif