Browse Source

Fix a building issue

pull/1379/head
Max Lv 7 years ago
parent
commit
1af0625d01
2 changed files with 6 additions and 2 deletions
  1. 6
      src/local.c
  2. 2
      src/utils.c

6
src/local.c

@ -660,7 +660,11 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
LOGI("connect to [%s]:%s", ip, port); LOGI("connect to [%s]:%s", ip, port);
} }
if (acl && !(vpn && strcmp(port, "53") == 0)) {
if (acl
#ifdef ANDROID
&& !(vpn && strcmp(port, "53") == 0)
#endif
) {
int host_match = acl_match_host(host); int host_match = acl_match_host(host);
int bypass = 0; int bypass = 0;
if (host_match > 0) if (host_match > 0)

2
src/utils.c

@ -233,7 +233,7 @@ void *
ss_align(size_t size) ss_align(size_t size)
{ {
int err; int err;
void *tmp;
void *tmp = NULL;
#ifdef HAVE_POSIX_MEMALIGN #ifdef HAVE_POSIX_MEMALIGN
err = posix_memalign(&tmp, sizeof(void *), size); err = posix_memalign(&tmp, sizeof(void *), size);
#else #else

Loading…
Cancel
Save