8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Frontported fix for linux build regression

This commit is contained in:
alexpeshkoff 2014-07-03 07:54:48 +00:00
parent d94f45288a
commit f9963d95dc
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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;