mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-20 21:43:41 +00:00
Fix a building issue
This commit is contained in:
+5
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user