mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
80b0c6ca3b
commit
af35f2a61d
6 changed files with 42 additions and 5 deletions
8
missing/crt_externs.h
Normal file
8
missing/crt_externs.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef MISSING_CRT_EXTERNS_H
|
||||
#define MISSING_CRT_EXTERNS_H
|
||||
|
||||
char ***_NSGetEnviron();
|
||||
#undef environ
|
||||
#define environ (*_NSGetEnviron())
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue