diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 09:02:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 09:02:50 +0000 |
commit | 5610e5dc70196d9dc6c884c4f977572b05db67e3 (patch) | |
tree | b494934e89942589e80ae43c85abbbde2344939d /missing/alloca.c | |
parent | 3c164fd92eb42acd915bdf702c73dc1be5a77d5f (diff) | |
download | ruby-5610e5dc70196d9dc6c884c4f977572b05db67e3.tar.gz |
* configure.in (--with-arch): added new option to support
universal binary. replaced --enable-fat-binary option which
didn't work actually.
* configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test.
* configure.in (ac_cv_type_getgroups): decalared because getgroups()
fills rest of the buffer with garbages on Rosetta.
* configure.in (alloca): defines only for powerpc, but always
create empty object to suppress ld warning.
* configure.in (LIBRUBY_DLDFLAGS): set compatibility version with
TEENY.
* configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG.
* configure.in (arch): renamed to "universal" from "fat".
* Makefile.in (ARCH_FLAG): added.
* include/ruby/defines.h (WORDS_BIGENDIAN): uses
AC_APPLE_UNIVERSAL_BUILD.
* missing/alloca.c (alloca): defines only if C_ALLOCA is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/alloca.c')
-rw-r--r-- | missing/alloca.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/missing/alloca.c b/missing/alloca.c index 067f76b183..620eef12e5 100644 --- a/missing/alloca.c +++ b/missing/alloca.c @@ -30,6 +30,8 @@ static char SCCSid[] = "@(#)alloca.c 1.1"; /* for the "what" utility */ #endif #include "ruby/config.h" +#ifdef C_ALLOCA + #ifdef emacs #ifdef static /* actually, only want this if static is defined as "" @@ -192,3 +194,4 @@ alloca (size) /* returns pointer to storage */ } } +#endif |