diff options
author | Michael Adam <obnox@samba.org> | 2019-08-01 00:47:29 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-08-26 10:23:23 +0000 |
commit | 3aa131b55589c0b3327d70cae8c038bf72d20f27 (patch) | |
tree | 1b26b92bf7c1e6354551131872fb4b2197b1cfd9 | |
parent | c7e983321921e4b39e3e63d2a89112ab35263092 (diff) | |
download | samba-3aa131b55589c0b3327d70cae8c038bf72d20f27.tar.gz |
vfs:glusterfs_fuse: build only if we have setmntent()
FreeBSD and other platforms that don't have setmntent() and friends can
not compile this module. This patch lets changes the build to only
compile this module if the setmntent() function is found.
This is the a follow-up fix to the actual fix for bug #13972.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13972
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu Aug 1 09:49:04 UTC 2019 on sn-devel-184
-rw-r--r-- | source3/wscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript index 35bb1cdb03e..39f0711cab7 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1668,7 +1668,6 @@ main() { vfs_media_harmony vfs_unityed_media vfs_fruit vfs_shell_snap vfs_commit vfs_worm vfs_crossrename vfs_linux_xfs_sgid vfs_time_audit vfs_offline vfs_virusfilter - vfs_glusterfs_fuse ''')) default_shared_modules.extend(TO_LIST('auth_script idmap_tdb2 idmap_script')) # these have broken dependencies @@ -1725,6 +1724,9 @@ main() { if conf.CONFIG_SET('HAVE_GLUSTERFS'): default_shared_modules.extend(TO_LIST('vfs_glusterfs')) + if conf.CONFIG_SET('HAVE_SETMNTENT'): + default_shared_modules.extend(TO_LIST('vfs_glusterfs_fuse')) + if conf.CONFIG_SET('HAVE_VXFS'): default_shared_modules.extend(TO_LIST('vfs_vxfs')) |