* 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.
This commit is contained in:
Corinna Vinschen
2013-08-14 11:44:23 +00:00
parent 111ced6d60
commit ef23b0a6a4
7 changed files with 34 additions and 4 deletions

View File

@ -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