From: <ale...@us...> - 2014-07-03 07:48:26
|
Revision: 59815 http://sourceforge.net/p/firebird/code/59815 Author: alexpeshkoff Date: 2014-07-03 07:48:17 +0000 (Thu, 03 Jul 2014) Log Message: ----------- Fixed regression in 2.5.3 - fails to build on relatively old distros Modified Paths: -------------- firebird/branches/B2_5_Release/configure.in firebird/branches/B2_5_Release/src/jrd/os/posix/unix.cpp Modified: firebird/branches/B2_5_Release/configure.in =================================================================== --- firebird/branches/B2_5_Release/configure.in 2014-07-03 00:28:01 UTC (rev 59814) +++ firebird/branches/B2_5_Release/configure.in 2014-07-03 07:48:17 UTC (rev 59815) @@ -839,6 +839,9 @@ AC_SEARCH_LIBS(clock_gettime, rt) AC_CHECK_FUNCS(clock_gettime) +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) Modified: firebird/branches/B2_5_Release/src/jrd/os/posix/unix.cpp =================================================================== --- firebird/branches/B2_5_Release/src/jrd/os/posix/unix.cpp 2014-07-03 00:28:01 UTC (rev 59814) +++ firebird/branches/B2_5_Release/src/jrd/os/posix/unix.cpp 2014-07-03 07:48:17 UTC (rev 59815) @@ -297,7 +297,7 @@ * **************************************/ -#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) { @@ -344,7 +344,7 @@ } #else main_file->fil_flags |= FIL_no_fast_extend; -#endif // HAVE_LINUX_FALLOC_H +#endif // fallocate present // not implemented return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |