From af35f2a61d8027df2e70012ae736f91ee0e41b85 Mon Sep 17 00:00:00 2001 From: charliesome Date: Fri, 28 Dec 2012 14:23:25 +0000 Subject: * configure.in: check for the whether crt_externs.h is present when compiling for darwin (this header is missing in the iOS SDK) * eval_intern.h: check HAVE_CRT_EXTERNS_H before including crt_externs.h, if not defined, include missing/crt_externs.h instead * hash.c: ditto * missing/setproctitle.c: ditto * missing/crt_externs.h: declare _NSGetEnviron() function and define environ for iOS git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_intern.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eval_intern.h') diff --git a/eval_intern.h b/eval_intern.h index ed27b8ba85..334b8d439a 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -28,7 +28,11 @@ #include #ifdef __APPLE__ -#include +# ifdef HAVE_CRT_EXTERNS_H +# include +# else +# include "missing/crt_externs.h" +# endif #endif #ifndef HAVE_STRING_H -- cgit v1.2.3