[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Things to do this week instead of arguing about mixers



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?

In CMake:
check_symbol_exists(fallocate "fcntl.h" HAVE_DECL_FALLOCATE)
should achieve the same.

        Kevin Kofler


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]