diff options
author | David Disseldorp <ddiss@samba.org> | 2013-11-27 14:04:34 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-11-27 18:44:14 +0100 |
commit | 6de10acec38eb0e5ac3f989101935ec53fac2fc0 (patch) | |
tree | b6362b6df2f26bdab503202af52b18053c3ce8c9 /source3 | |
parent | 3cc0651d9feda00b6a04f84b76744b2acc3a0446 (diff) | |
download | samba-6de10acec38eb0e5ac3f989101935ec53fac2fc0.tar.gz samba-6de10acec38eb0e5ac3f989101935ec53fac2fc0.tar.xz samba-6de10acec38eb0e5ac3f989101935ec53fac2fc0.zip |
build: check linux/fs.h for compression flags
Needed for old distributions (e.g. SLES8), which provide a linux/fs.h
without the FS_IOC_GETFLAGS/FS_COMPR_FL defines needed for the btrfs VFS
module.
Reported-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Nov 27 18:44:14 CET 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/wscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript index 2edf5e8ea71..b09c2db7791 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1727,7 +1727,8 @@ main() { if conf.CHECK_HEADERS('gpfs_gpl.h'): conf.DEFINE('HAVE_GPFS', '1') - if conf.CHECK_HEADERS('linux/ioctl.h sys/ioctl.h linux/fs.h'): + if (conf.CHECK_HEADERS('linux/ioctl.h sys/ioctl.h linux/fs.h') and + conf.CHECK_DECLS('FS_IOC_GETFLAGS FS_COMPR_FL', headers='linux/fs.h')): conf.DEFINE('HAVE_LINUX_IOCTL', '1') conf.env['CCFLAGS_CEPHFS'] = "-D_FILE_OFFSET_BITS=64" |