]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-fallocate-pax.m4
Don't assume pthread_t is uint_t for portability
[mirror_zfs.git] / config / kernel-fallocate-pax.m4
CommitLineData
a9125891
BB
1dnl #
2dnl # PaX Linux 2.6.38 - 3.x API
3dnl #
93ce2b4c 4AC_DEFUN([ZFS_AC_PAX_KERNEL_FILE_FALLOCATE], [
a9125891 5 AC_MSG_CHECKING([whether fops->fallocate() exists])
93ce2b4c 6 ZFS_LINUX_TRY_COMPILE([
a9125891
BB
7 #include <linux/fs.h>
8 ],[
9 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
10 struct file_operations_no_const fops __attribute__ ((unused)) = {
11 .fallocate = fallocate,
12 };
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_FILE_FALLOCATE, 1, [fops->fallocate() exists])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19])