mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 15:33:50 +00:00
Fix #2215
This commit is contained in:
@@ -246,6 +246,7 @@ ss_align(size_t size)
|
||||
int err;
|
||||
void *tmp = NULL;
|
||||
#ifdef HAVE_POSIX_MEMALIGN
|
||||
/* ensure 16 byte alignment */
|
||||
err = posix_memalign(&tmp, sizeof(void *), size);
|
||||
#else
|
||||
err = -1;
|
||||
|
||||
Reference in New Issue
Block a user