[PATCH] build: check linux/fs.h for compression flags
Michael Adam
obnox at samba.org
Wed Nov 27 10:29:39 MST 2013
LGTM - pushed
On 2013-11-27 at 14:04 +0100, David Disseldorp wrote:
> 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 at samba.org>
> Signed-off-by: David Disseldorp <ddiss at samba.org>
> ---
> source3/wscript | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/source3/wscript b/source3/wscript
> index 2edf5e8..b09c2db 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"
> --
> 1.8.1.4
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 215 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131127/1c73ab85/attachment.pgp>
More information about the samba-technical
mailing list