Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-08-14 15:44:23 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-08-14 15:44:23 +0400
commitef23b0a6a48e88b606d3548bb86520ceec563f40 (patch)
treed9791de4f5c25ba581a3fb6c7704bbc108458a8b /winsup/cygwin/lib/_cygwin_crt0_common.cc
parent111ced6d60d333666d32f53546a79d9a42c2d4ee (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.cc1
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