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

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

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux