Skip to content

Commit

Permalink
android: build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hjfbswb authored and lws-team committed Aug 2, 2019
1 parent b68152e commit 8d79c06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/plat/unix/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@

#endif

#if defined (__sun) || defined(__HAIKU__) || defined(__QNX__)
#if defined (__sun) || defined(__HAIKU__) || defined(__QNX__) || defined(__ANDROID__)
#include <syslog.h>

#if defined(__ANDROID__)
#include <sys/resource.h>
#endif

#else
#include <sys/syslog.h>
#endif
Expand Down Expand Up @@ -148,11 +153,6 @@ delete_from_fd(const struct lws_context *context, int fd);
#endif
#endif

#if defined (__ANDROID__)
#include <syslog.h>
#include <sys/resource.h>
#endif

#define compatible_close(x) close(x)
#define lws_plat_socket_offset() (0)

Expand Down
2 changes: 1 addition & 1 deletion test-apps/test-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ int main(int argc, char **argv)

printf("Using resource path \"%s\"\n", resource_path);
#ifdef EXTERNAL_POLL
#if !defined(WIN32) && !defined(_WIN32)
#if !defined(WIN32) && !defined(_WIN32) && !defined(__ANDROID__)
max_poll_elements = getdtablesize();
#else
max_poll_elements = sysconf(_SC_OPEN_MAX);
Expand Down

0 comments on commit 8d79c06

Please sign in to comment.