diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-08-14 11:44:23 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-08-14 11:44:23 +0000 |
commit | ef23b0a6a48e88b606d3548bb86520ceec563f40 (patch) | |
tree | d9791de4f5c25ba581a3fb6c7704bbc108458a8b /winsup/cygwin/malloc_wrapper.cc | |
parent | 111ced6d60d333666d32f53546a79d9a42c2d4ee (diff) | |
download | cygnal-ef23b0a6a48e88b606d3548bb86520ceec563f40.tar.gz cygnal-ef23b0a6a48e88b606d3548bb86520ceec563f40.tar.bz2 cygnal-ef23b0a6a48e88b606d3548bb86520ceec563f40.zip |
* include/sys/cygwin.h (struct per_process): Add posix_memalign. Reduce
size of unused2 accordingly.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Initialize
u->posix_memalign with address of posix_memalign.
* malloc_wrapper.cc (posix_memalign): Call user-provided posix_memalign
rather than just returning ENOSYS.
* globals.cc (__cygwin_user_data): Initialize posix_memalign member.
Diffstat (limited to 'winsup/cygwin/malloc_wrapper.cc')
-rw-r--r-- | winsup/cygwin/malloc_wrapper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/malloc_wrapper.cc index c5271588f..17347ae3d 100644 --- a/winsup/cygwin/malloc_wrapper.cc +++ b/winsup/cygwin/malloc_wrapper.cc @@ -115,7 +115,7 @@ posix_memalign (void **memptr, size_t alignment, size_t bytes) void *res; if (!use_internal) - return ENOSYS; + return user_data->posix_memalign (memptr, alignment, bytes); if ((alignment & (alignment - 1)) != 0) return EINVAL; __malloc_lock (); |