mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Front-ported Darwin port changes
This commit is contained in:
parent
d3b6b60b54
commit
0e896529b0
@ -787,7 +787,14 @@ AC_CHECK_FUNCS(fchmod)
|
||||
AC_CHECK_FUNCS(semtimedop)
|
||||
AC_CHECK_FUNCS(fegetenv)
|
||||
AC_CHECK_FUNCS(strerror_r)
|
||||
AC_CHECK_FUNCS(fdatasync fsync)
|
||||
case $host in
|
||||
*-darwin*)
|
||||
ac_cv_func_fdatasync=no
|
||||
;;
|
||||
*)
|
||||
AC_CHECK_FUNCS(fdatasync fsync)
|
||||
;;
|
||||
esac
|
||||
AC_CHECK_FUNCS(poll)
|
||||
dnl AC_CHECK_FUNCS(AO_compare_and_swap_full)
|
||||
AC_COMPILE_IFELSE(
|
||||
|
@ -99,11 +99,13 @@ void divorce_terminal(int mask)
|
||||
|
||||
for (fid = 0; fid < NOFILE; fid++)
|
||||
{
|
||||
#ifdef MIXED_SEMAPHORE_AND_FILE_HANDLE
|
||||
if (Firebird::SignalSafeSemaphore::checkHandle(fid))
|
||||
#ifdef DARWIN
|
||||
#ifdef HAVE_UNISTD_H
|
||||
if (isatty(fid) <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
if (!(mask & (1 << fid)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user