Fix a building issue

This commit is contained in:
Max Lv
2017-03-05 16:07:10 +08:00
parent 9241e545f4
commit de0cebb62e
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -660,7 +660,11 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
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 bypass = 0;
if (host_match > 0)
+1 -1
View File
@@ -233,7 +233,7 @@ void *
ss_align(size_t size)
{
int err;
void *tmp;
void *tmp = NULL;
#ifdef HAVE_POSIX_MEMALIGN
err = posix_memalign(&tmp, sizeof(void *), size);
#else