Browse Source

Removed conflicting fd_set definition, tweak to LWIP_PLATFORM_DIAG(x)

master
Joseph Henry 7 years ago
parent
commit
4fd612c9c7
  1. 7
      ports/unix/port/include/arch/cc.h

7
ports/unix/port/include/arch/cc.h

@ -32,6 +32,8 @@
#ifndef LWIP_ARCH_CC_H
#define LWIP_ARCH_CC_H
#include "Debug.hpp" // libzt
/* see https://sourceforge.net/p/predef/wiki/OperatingSystems/ */
#if defined __ANDROID__
#define LWIP_UNIX_ANDROID
@ -65,7 +67,7 @@
#endif
#if defined(LWIP_UNIX_ANDROID) && defined(FD_SET)
typedef __kernel_fd_set fd_set;
//typedef __kernel_fd_set fd_set;
#endif
#if defined(LWIP_UNIX_MACH)
@ -76,6 +78,9 @@ typedef __kernel_fd_set fd_set;
#define LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
#endif
// Comment out the following line to use lwIP's default diagnostic printing routine
#define LWIP_PLATFORM_DIAG(x) do {DEBUG_INFO x;} while(0)
struct sio_status_s;
typedef struct sio_status_s sio_status_t;
#define sio_fd_t sio_status_t*

Loading…
Cancel
Save