diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-08-14 15:44:23 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-08-14 15:44:23 +0400 |
commit | ef23b0a6a48e88b606d3548bb86520ceec563f40 (patch) | |
tree | d9791de4f5c25ba581a3fb6c7704bbc108458a8b /winsup/cygwin/lib/_cygwin_crt0_common.cc | |
parent | 111ced6d60d333666d32f53546a79d9a42c2d4ee (diff) |
* 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/lib/_cygwin_crt0_common.cc')
-rw-r--r-- | winsup/cygwin/lib/_cygwin_crt0_common.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/lib/_cygwin_crt0_common.cc b/winsup/cygwin/lib/_cygwin_crt0_common.cc index b22859ec0..718ce941e 100644 --- a/winsup/cygwin/lib/_cygwin_crt0_common.cc +++ b/winsup/cygwin/lib/_cygwin_crt0_common.cc @@ -145,6 +145,7 @@ _cygwin_crt0_common (MainFunc f, per_process *u) u->free = &free; u->realloc = &realloc; u->calloc = &calloc; + u->posix_memalign = &posix_memalign; /* Likewise for the C++ memory operators, if any, but not if we were dlopen()'d, as we might get dlclose()'d and that would |