From 04fed1f2b6c8a6ba257a436b80ef19d4ec3db1c7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Mar 2010 10:46:27 -0400 Subject: [PATCH] build: sys_lease_linux needs to be conditionally enabled --- source4/ntvfs/sysdep/wscript_build | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/source4/ntvfs/sysdep/wscript_build b/source4/ntvfs/sysdep/wscript_build index 8330d47d9bb..eb9612936ca 100644 --- a/source4/ntvfs/sysdep/wscript_build +++ b/source4/ntvfs/sysdep/wscript_build @@ -4,21 +4,24 @@ bld.SAMBA_MODULE('sys_notify_inotify', init_function='sys_notify_inotify_init', deps='LIBEVENTS', enabled = bld.CONFIG_SET('HAVE_LINUX_INOTIFY') - ) + ) bld.SAMBA_SUBSYSTEM('sys_notify', - source='sys_notify.c' - ) + source='sys_notify.c' + ) -bld.SAMBA_SUBSYSTEM('sys_lease_linux', - source='sys_lease_linux.c', - deps='tevent' - ) +bld.SAMBA_MODULE('sys_lease_linux', + source='sys_lease_linux.c', + deps='tevent', + subsystem='sys_lease', + init_function='sys_lease_linux_init', + enabled = bld.CONFIG_SET('HAVE_F_SETLEASE_DECL') + ) bld.SAMBA_SUBSYSTEM('sys_lease', - source='sys_lease.c' - ) + source='sys_lease.c' + ) -- 2.34.1