Skip to content

Commit

Permalink
pthread may call __libc_memalign, see #731
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Sep 6, 2017
1 parent 100329f commit c8d6ffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skynet-src/malloc_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ skynet_memalign(size_t alignment, size_t size) {
return fill_prefix(ptr);
}

void *
__libc_memalign(size_t alignment, size_t size) {
return skynet_memalign(alignment, size);
}

#else

// for skynet_lalloc use
Expand Down

0 comments on commit c8d6ffd

Please sign in to comment.