diff --git a/library/net_sockets.c b/library/net_sockets.c index ebe3b5f3d51f3f392f4009fb8aebcdd5bb793c3b..3c026fc416dc98a2d565647717b1bf098da773fa 100644 --- a/library/net_sockets.c +++ b/library/net_sockets.c @@ -111,6 +111,12 @@ static int wsa_init_done = 0; #include +#ifdef LITEOS_VERSION +#include "lwip/sockets.h" +#define close(fd) lwip_close(fd) +#define shutdown(fd, how) lwip_shutdown(fd, how) +#endif + /* * Prepare for using the sockets interface */