зеркало из https://github.com/github/ruby.git
* gc.c: i686-linux needs to define _XOPEN_SOURCE 600 for posix_memalign.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
88b16cebc8
Коммит
471394f647
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Jan 9 07:46:17 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* gc.c: i686-linux needs to define _XOPEN_SOURCE 600 for posix_memalign.
|
||||||
|
|
||||||
Mon Jan 9 04:24:59 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Jan 9 04:24:59 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (rb_objspace_free): global_List is allocated with xmalloc.
|
* gc.c (rb_objspace_free): global_List is allocated with xmalloc.
|
||||||
|
|
8
gc.c
8
gc.c
|
@ -36,9 +36,11 @@
|
||||||
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#elif defined(HAVE_POSIX_MEMALIGN)
|
||||||
|
# ifdef __linux__ /* i386 linux needs #define _XOPEN_SOURCE 600 to use posix_memalign */
|
||||||
#if !defined(__MINGW32__) && !defined(_WIN32) && !defined(__CYGWIN__) &&!defined(HAVE_POSIX_MEMALIGN) &&defined(HAVE_MEMALIGN)
|
# define _XOPEN_SOURCE 600
|
||||||
|
# endif
|
||||||
|
#elif defined(HAVE_MEMALIGN)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче