diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 22:50:59 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-08 22:50:59 +0000 |
commit | 471394f647953117af078ce38ad61fc6b241cc42 (patch) | |
tree | 7c41d931bf6192ccb133abeac8bf938663bdb832 /gc.c | |
parent | 88b16cebc818a75f36005f25998ea1a2e35fdfee (diff) | |
download | ruby-471394f647953117af078ce38ad61fc6b241cc42.tar.gz |
* 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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -36,9 +36,11 @@ #if defined _WIN32 || defined __CYGWIN__ #include <windows.h> -#endif - -#if !defined(__MINGW32__) && !defined(_WIN32) && !defined(__CYGWIN__) &&!defined(HAVE_POSIX_MEMALIGN) &&defined(HAVE_MEMALIGN) +#elif defined(HAVE_POSIX_MEMALIGN) +# ifdef __linux__ /* i386 linux needs #define _XOPEN_SOURCE 600 to use posix_memalign */ +# define _XOPEN_SOURCE 600 +# endif +#elif defined(HAVE_MEMALIGN) #include <malloc.h> #endif |