]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: improved check for fallocate()
authorYann Droneaud <yann@droneaud.fr>
Wed, 31 Mar 2010 14:14:04 +0000 (16:14 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Mar 2010 15:04:37 +0000 (17:04 +0200)
commitb832c2fe345c9576432af0db6f1c3a9010fdbf24
tree3c712805c14939f057a3abd57b1e9e009cf61968
parent08b825dbea0b6e918ef9ba7db8d7d56b02022772
build-sys: improved check for fallocate()

With glibc 2.10 on a 32bits system, fallocate64() function is not
exported. This a problem, since _FILE_OFFSET_BITS is set to 64 and
fallocate() is redirected to fallocate64().
Sadly, AC_CHECK_FUNC() doesn't catch such problem, since it's overriding
the function prototype.

See this for references:
http://sources.redhat.com/ml/libc-hacker/2009-05/msg00003.html

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
configure.ac