Kevin Kofler wrote: > Eric Sandeen wrote: >> * Come up with some template autoconf magic to make it easy for >> apps to detect fallocate() at build time, and some example >> code on how to use it > > Shouldn't: > AC_CHECK_DECLS([fallocate], [], [], [[#include <fcntl.h>]]) > (which defines HAVE_DECL_FALLOCATE) be sufficient? If you say so :) I really am no autoconf wizard at all. If it's that easy, great! > In CMake: > check_symbol_exists(fallocate "fcntl.h" HAVE_DECL_FALLOCATE) > should achieve the same. > > Kevin Kofler > I guess I had originaly been thinking that maybe we'd want to test for posix_fallocate, and whether we had a glibc version that wired it to the fallocate syscall, etc etc... but really, going forward it's probably sufficient to just check for fallocate itself, and not worry about the rest. Thanks, -Eric -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list