lwip berkely sockets port

pull/1/head
Todd A Ouska 2011-05-16 16:20:32 -07:00
parent a2f734c3b8
commit e01822f8bb
1 changed files with 20 additions and 14 deletions

View File

@ -38,6 +38,11 @@
#endif #endif
#ifndef USE_WINDOWS_API #ifndef USE_WINDOWS_API
#ifdef LWIP_SOCKETS
#define LWIP_SOCKET 1 /* use berkely API */
#define LWIP_COMPAT_SOCKETS 1
#include "sockets.h"
#else
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
@ -52,6 +57,7 @@
#ifdef THREADX #ifdef THREADX
#include <socket.h> #include <socket.h>
#endif #endif
#endif
#endif /* USE_WINDOWS_API */ #endif /* USE_WINDOWS_API */
#ifdef __sun #ifdef __sun