зеркало из https://github.com/github/ruby.git
* configure.in (darwin): _XOPEN_SOURCE is necessary to make ucontext_t
consistent with the library implementation of MacOS X 10.5. [ruby-dev:33461] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
12f3bcfcab
Коммит
3fb0815d8c
|
@ -1,3 +1,9 @@
|
|||
Fri Feb 1 12:43:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (darwin): _XOPEN_SOURCE is necessary to make ucontext_t
|
||||
consistent with the library implementation of MacOS X 10.5.
|
||||
[ruby-dev:33461]
|
||||
|
||||
Fri Feb 1 11:44:22 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/compile_prelude.rb (C_ESC): use octal escape to avoid
|
||||
|
|
12
configure.in
12
configure.in
|
@ -466,6 +466,7 @@ nextstep*) ;;
|
|||
openstep*) ;;
|
||||
rhapsody*) ;;
|
||||
darwin*) LIBS="-lobjc $LIBS"
|
||||
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE"
|
||||
AC_TRY_CPP([#include <AvailabilityMacros.h>
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040
|
||||
#error pre OS X 10.4
|
||||
|
@ -475,7 +476,6 @@ darwin*) LIBS="-lobjc $LIBS"
|
|||
[
|
||||
AC_DEFINE(BROKEN_SETREUID, 1)
|
||||
AC_DEFINE(BROKEN_SETREGID, 1)
|
||||
ac_cv_header_ucontext_h=no
|
||||
])
|
||||
;;
|
||||
hpux*) LIBS="-lm $LIBS"
|
||||
|
@ -684,12 +684,18 @@ fi
|
|||
AC_DEFUN([RUBY_CHECK_VARTYPE], [dnl
|
||||
AC_CACHE_CHECK([for external $1], rb_cv_var_$1,
|
||||
[rb_cv_var_$1=no
|
||||
AC_TRY_COMPILE([#define _XOPEN_SOURCE 1
|
||||
AC_TRY_COMPILE([
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 1
|
||||
#endif
|
||||
$2
|
||||
const volatile void *volatile t;],
|
||||
[t = &(&$1)[0];],
|
||||
[for t in $3; do
|
||||
AC_TRY_COMPILE([#define _XOPEN_SOURCE 1
|
||||
AC_TRY_COMPILE([
|
||||
#ifndef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 1
|
||||
#endif
|
||||
$2
|
||||
extern $t $1;
|
||||
const volatile void *volatile t;],
|
||||
|
|
Загрузка…
Ссылка в новой задаче