File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ cmake_push_check_state(RESET)
4545
4646 if (NOT _HAVE_TTYNAME_R)
4747 message (CHECK_FAIL "no (non-standard declaration)" )
48- elseif (CMAKE_CROSSCOMPILING AND _HAVE_TTYNAME_R)
48+ elseif (
49+ NOT DEFINED HAVE_TTYNAME_R
50+ CMAKE_CROSSCOMPILING
51+ NOT CMAKE_CROSSCOMPILING_EMULATOR
52+ AND _HAVE_TTYNAME_R
53+ )
4954 set (HAVE_TTYNAME_R TRUE CACHE INTERNAL "Whether ttyname_r() works." )
5055 message (CHECK_PASS "guessing yes (cross-compiling)" )
5156 else ()
Original file line number Diff line number Diff line change @@ -57,3 +57,6 @@ set(ZEND_MM_OUTPUT "(size_t)8 (size_t)3 0")
5757
5858# Set to exit code of the stack limit check.
5959set (ZEND_CHECK_STACK_LIMIT_EXITCODE 1)
60+
61+ # Set to exit code of the ttyname_r check.
62+ set (HAVE_TTYNAME_R_EXITCODE 0)
You can’t perform that action at this time.
0 commit comments