diff options
author | Robert Nagy <robert.nagy@gmail.com> | 2011-12-21 16:16:22 +0100 |
---|---|---|
committer | Robert Nagy <robert.nagy@gmail.com> | 2011-12-21 16:17:45 +0100 |
commit | b8b22391ae7f87c8fb495a9e6839ed508fdaf932 (patch) | |
tree | 9d8b35f7d1b260c64c1cc3afb13420140488d18b /configure.in | |
parent | 56c0d3b569ba62eafe94f79299e5afb83f2f891b (diff) |
only use posix_fallocate() if it's actually available
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 49c97585d2bf..897403a9bbd3 100644 --- a/configure.in +++ b/configure.in @@ -3879,6 +3879,8 @@ fi if test "$with_alloc" = "internal" -o -z "$with_alloc"; then AC_MSG_RESULT([internal]) fi +AC_CHECK_FUNCS(posix_fallocate, HAVE_POSIX_FALLOCATE=YES, [HAVE_POSIX_FALLOCATE=NO]) +AC_SUBST(HAVE_POSIX_FALLOCATE) AC_SUBST(ALLOC) dnl =================================================================== |