dovecot: posix_fallocate() needs to be tested with linking, not ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 20 20:00:43 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/6c868e7fe7b2
changeset: 7183:6c868e7fe7b2
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 20 20:00:41 2008 +0200
description:
posix_fallocate() needs to be tested with linking, not compiling

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
configure.in |    2 +-

diffs (12 lines):

diff -r efc78f6db374 -r 6c868e7fe7b2 configure.in
--- a/configure.in	Sun Jan 20 14:55:38 2008 +0200
+++ b/configure.in	Sun Jan 20 20:00:41 2008 +0200
@@ -597,7 +597,7 @@ AC_TRY_COMPILE([
 ])
 
 dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #define _XOPEN_SOURCE 600
   #include <stdlib.h>
   #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)


More information about the dovecot-cvs mailing list