Skip to content

Commit

Permalink
ndk fixes
Browse files Browse the repository at this point in the history
* always set SOCKLEN_T_DEFINED
* don't use fd_set weirdness
  • Loading branch information
brian-armstrong committed Jan 22, 2018
1 parent 8423e5a commit b8904ea
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define LWIP_UNIX_ANDROID
/* the next include defines __ANDROID_API__ */
#include <android/api-level.h>
#if __ANDROID_API__ >= 21
#define SOCKLEN_T_DEFINED
#endif
#endif
Expand Down Expand Up @@ -110,10 +109,6 @@ typedef uintptr_t mem_ptr_t;

#define LWIP_RAND() ((u32_t)rand())

#if defined(LWIP_UNIX_ANDROID) && defined(FD_SET)
typedef __kernel_fd_set fd_set;
#endif

struct sio_status_s;
typedef struct sio_status_s sio_status_t;
#define sio_fd_t sio_status_t*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define LWIP_UNIX_ANDROID
/* the next include defines __ANDROID_API__ */
#include <android/api-level.h>
#if __ANDROID_API__ >= 21
#define SOCKLEN_T_DEFINED
#endif
#endif
Expand Down Expand Up @@ -110,10 +109,6 @@ typedef uintptr_t mem_ptr_t;

#define LWIP_RAND() ((u32_t)rand())

#if defined(LWIP_UNIX_ANDROID) && defined(FD_SET)
typedef __kernel_fd_set fd_set;
#endif

struct sio_status_s;
typedef struct sio_status_s sio_status_t;
#define sio_fd_t sio_status_t*
Expand Down
5 changes: 0 additions & 5 deletions quiet/src/main/jni/include/x86/quiet-lwip/lwip/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define LWIP_UNIX_ANDROID
/* the next include defines __ANDROID_API__ */
#include <android/api-level.h>
#if __ANDROID_API__ >= 21
#define SOCKLEN_T_DEFINED
#endif
#endif
Expand Down Expand Up @@ -110,10 +109,6 @@ typedef uintptr_t mem_ptr_t;

#define LWIP_RAND() ((u32_t)rand())

#if defined(LWIP_UNIX_ANDROID) && defined(FD_SET)
typedef __kernel_fd_set fd_set;
#endif

struct sio_status_s;
typedef struct sio_status_s sio_status_t;
#define sio_fd_t sio_status_t*
Expand Down
5 changes: 0 additions & 5 deletions quiet/src/main/jni/include/x86_64/quiet-lwip/lwip/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#define LWIP_UNIX_ANDROID
/* the next include defines __ANDROID_API__ */
#include <android/api-level.h>
#if __ANDROID_API__ >= 21
#define SOCKLEN_T_DEFINED
#endif
#endif
Expand Down Expand Up @@ -110,10 +109,6 @@ typedef uintptr_t mem_ptr_t;

#define LWIP_RAND() ((u32_t)rand())

#if defined(LWIP_UNIX_ANDROID) && defined(FD_SET)
typedef __kernel_fd_set fd_set;
#endif

struct sio_status_s;
typedef struct sio_status_s sio_status_t;
#define sio_fd_t sio_status_t*
Expand Down

0 comments on commit b8904ea

Please sign in to comment.