mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Frontported fix for linux build regression
This commit is contained in:
parent
d94f45288a
commit
f9963d95dc
@ -833,6 +833,9 @@ AC_CHECK_FUNCS(pthread_rwlockattr_setkind_np)
|
||||
AC_CHECK_FUNCS(pthread_cancel)
|
||||
AC_CHECK_FUNCS(sigset)
|
||||
|
||||
dnl Check for fallocate() system call
|
||||
AC_CHECK_FUNCS(fallocate)
|
||||
|
||||
dnl Semaphores
|
||||
if test "$ac_cv_header_semaphore_h" = "yes"; then
|
||||
AC_SEARCH_LIBS(sem_init, rt pthread)
|
||||
|
@ -307,7 +307,7 @@ void PIO_extend(Database* dbb, jrd_file* main_file, const ULONG extPages, const
|
||||
*
|
||||
**************************************/
|
||||
|
||||
#ifdef HAVE_LINUX_FALLOC_H
|
||||
#if defined(HAVE_LINUX_FALLOC_H) && defined(HAVE_FALLOCATE)
|
||||
ULONG leftPages = extPages;
|
||||
for (jrd_file* file = main_file; file && leftPages; file = file->fil_next)
|
||||
{
|
||||
@ -354,7 +354,7 @@ void PIO_extend(Database* dbb, jrd_file* main_file, const ULONG extPages, const
|
||||
}
|
||||
#else
|
||||
main_file->fil_flags |= FIL_no_fast_extend;
|
||||
#endif // HAVE_LINUX_FALLOC_H
|
||||
#endif // fallocate present
|
||||
|
||||
// not implemented
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user