IssueNo:#I3IBCL

Description:use posix instead of lwip self
Feature or Bugfix:Bugfix
Binary Source:No
This commit is contained in:
YOUR_NAME 2021-04-12 20:37:22 +08:00
parent 247959fcbc
commit eca2fae28a
4 changed files with 12 additions and 13 deletions

View File

@ -64,10 +64,10 @@
#define LWIP_DNS_API_DECLARE_STRUCTS 0 #define LWIP_DNS_API_DECLARE_STRUCTS 0
#ifndef __SIZEOF_POINTER__ #ifndef __SIZEOF_POINTER__
#define __SIZEOF_POINTER__ 4 // 32位系统 #define __SIZEOF_POINTER__ 4 // 32 bit system
#endif #endif
#define LOS_TASK_STATUS_DETACHED 0x0100 // 预留字段 #define LOS_TASK_STATUS_DETACHED 0x0100 // reserved
#if defined(__arm__) && defined(__ARMCC_VERSION) #if defined(__arm__) && defined(__ARMCC_VERSION)
/* Keil uVision4 tools */ /* Keil uVision4 tools */

View File

@ -32,8 +32,8 @@
#ifndef _LWIP_PORTING_NETIF_H_ #ifndef _LWIP_PORTING_NETIF_H_
#define _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 <net/if.h>
#include <netinet/ip.h> // For IP_OFFMASK, by `core/ipv4/ip4_frag.c' #include <netinet/ip.h>
#define netif_find netifapi_netif_find_by_name #define netif_find netifapi_netif_find_by_name
@ -54,7 +54,7 @@
#undef LWIP_NETIF_CLIENT_DATA_INDEX_DHCP #undef LWIP_NETIF_CLIENT_DATA_INDEX_DHCP
#endif #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 #ifdef __cplusplus
extern "C" { extern "C" {
@ -64,7 +64,7 @@ extern "C" {
#undef NETIF_NAMESIZE #undef NETIF_NAMESIZE
#define NETIF_NAMESIZE IFNAMSIZ #define NETIF_NAMESIZE IFNAMSIZ
#define LOOPBACK_IF 0 // 772 #define LOOPBACK_IF 0
#define ETHERNET_DRIVER_IF 1 #define ETHERNET_DRIVER_IF 1
#define WIFI_DRIVER_IF 801 #define WIFI_DRIVER_IF 801
#define BT_PROXY_IF 802 #define BT_PROXY_IF 802

View File

@ -33,13 +33,13 @@
#define _LWIP_PORTING_SOCKETS_H_ #define _LWIP_PORTING_SOCKETS_H_
#include <sys/socket.h> #include <sys/socket.h>
#include <poll.h> // For poll_table #include <poll.h>
#include <netinet/tcp.h> // For TCP_NODELAY etc. #include <netinet/tcp.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/ioctl.h> // For FIONREAD etc. #include <sys/ioctl.h>
#include <sys/select.h> // For FD_SET #include <sys/select.h>
#include <limits.h> // For IOV_MAX #include <limits.h>
#include <fcntl.h> // For F_SETFL #include <fcntl.h>
#include_next <lwip/sockets.h> #include_next <lwip/sockets.h>
#include <fatfs.h> #include <fatfs.h>

View File

@ -29,7 +29,6 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "netdb.h"
#include "lwip/netdb.h" #include "lwip/netdb.h"
struct hostent *gethostbyname(const char *name) struct hostent *gethostbyname(const char *name)