vfs:glusterfs_fuse: build only if we have setmntent()
authorMichael Adam <obnox@samba.org>
Wed, 31 Jul 2019 22:47:29 +0000 (00:47 +0200)
committerAmitay Isaacs <amitay@samba.org>
Thu, 1 Aug 2019 09:49:04 +0000 (09:49 +0000)
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

source3/wscript

index ff72a173a4bfc78f2c2319d1236586ecd60d2207..4a3e75605e75d6f6e9eacb345fa5a6267b0f3993 100644 (file)
@@ -1713,7 +1713,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
@@ -1775,6 +1774,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'))