提交 eca2fae2 编写于 作者: Y YOUR_NAME

IssueNo:#I3IBCL

Description:use posix instead of lwip self
Feature or Bugfix:Bugfix
Binary Source:No
上级 247959fc
......@@ -64,10 +64,10 @@
#define LWIP_DNS_API_DECLARE_STRUCTS 0
#ifndef __SIZEOF_POINTER__
#define __SIZEOF_POINTER__ 4 // 32位系统
#define __SIZEOF_POINTER__ 4 // 32 bit system
#endif
#define LOS_TASK_STATUS_DETACHED 0x0100 // 预留字段
#define LOS_TASK_STATUS_DETACHED 0x0100 // reserved
#if defined(__arm__) && defined(__ARMCC_VERSION)
/* Keil uVision4 tools */
......
......@@ -32,8 +32,8 @@
#ifndef _LWIP_PORTING_NETIF_H_
#define _LWIP_PORTING_NETIF_H_
#include <net/if.h> // For IFNAMSIZ/IF_NAMESIZE and `struct ifreq', by `lwip/netif.h' and `api/sockets.c'
#include <netinet/ip.h> // For IP_OFFMASK, by `core/ipv4/ip4_frag.c'
#include <net/if.h>
#include <netinet/ip.h>
#define netif_find netifapi_netif_find_by_name
......@@ -54,7 +54,7 @@
#undef LWIP_NETIF_CLIENT_DATA_INDEX_DHCP
#endif
#include <lwip/etharp.h> // For ETHARP_HWADDR_LEN, by `hieth-sf src/interface.c' and `wal/wal_net.c'
#include <lwip/etharp.h>
#ifdef __cplusplus
extern "C" {
......@@ -64,7 +64,7 @@ extern "C" {
#undef NETIF_NAMESIZE
#define NETIF_NAMESIZE IFNAMSIZ
#define LOOPBACK_IF 0 // 772
#define LOOPBACK_IF 0
#define ETHERNET_DRIVER_IF 1
#define WIFI_DRIVER_IF 801
#define BT_PROXY_IF 802
......
......@@ -33,13 +33,13 @@
#define _LWIP_PORTING_SOCKETS_H_
#include <sys/socket.h>
#include <poll.h> // For poll_table
#include <netinet/tcp.h> // For TCP_NODELAY etc.
#include <poll.h>
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <sys/ioctl.h> // For FIONREAD etc.
#include <sys/select.h> // For FD_SET
#include <limits.h> // For IOV_MAX
#include <fcntl.h> // For F_SETFL
#include <sys/ioctl.h>
#include <sys/select.h>
#include <limits.h>
#include <fcntl.h>
#include_next <lwip/sockets.h>
#include <fatfs.h>
......
......@@ -29,7 +29,6 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "netdb.h"
#include "lwip/netdb.h"
struct hostent *gethostbyname(const char *name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册