From da87fa998ab71328f30bcdf5b41aee8675aee48a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 23 May 2019 11:11:11 +0200 Subject: [PATCH] lib: Only compile resolvconftest if fmemopen exists MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bug: https://bugzilla.samba.org/show_bug.cgi?id=13961 Signed-off-by: Volker Lendecke Reviewed-by: Ralph Böhme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat May 25 00:05:25 UTC 2019 on sn-devel-184 --- lib/replace/wscript | 1 + libcli/dns/wscript_build | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/replace/wscript b/lib/replace/wscript index d442792433d..4df1b4d77c4 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -360,6 +360,7 @@ def configure(conf): conf.CHECK_FUNCS('link readlink symlink realpath snprintf vsnprintf') conf.CHECK_FUNCS('asprintf vasprintf setenv unsetenv strnlen strtoull __strtoull') conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memalign posix_memalign') + conf.CHECK_FUNCS('fmemopen') if conf.CONFIG_SET('HAVE_MEMALIGN'): conf.CHECK_DECLS('memalign', headers='malloc.h') diff --git a/libcli/dns/wscript_build b/libcli/dns/wscript_build index ef1c34ffd2f..ea745c14028 100644 --- a/libcli/dns/wscript_build +++ b/libcli/dns/wscript_build @@ -8,6 +8,7 @@ bld.SAMBA_LIBRARY('clidns', bld.SAMBA_BINARY('resolvconftest', source='resolvconftest.c', deps='clidns', + enabled=bld.CONFIG_SET('HAVE_FMEMOPEN'), install=False) bld.SAMBA_SUBSYSTEM('dns_lookup', -- 2.47.3