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"