From: Jeremy Harris Date: Fri, 9 Aug 2024 16:52:15 +0000 (+0100) Subject: JSON: support loadable-module build X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/c5ccc6b8b3efcf06b724019643dbc4398ee6c71b JSON: support loadable-module build --- diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff index 4aa1d04b1..d69c1af85 100644 --- a/doc/doc-txt/NewStuff +++ b/doc/doc-txt/NewStuff @@ -14,6 +14,8 @@ Version 4.98 3. Events smtp:fail:protocol and smtp:fail:syntax + 4. JSON lookup support can now be built as a lodable module + Version 4.98 ------------ 1. The dkim_status ACL condition may now be used in data ACLs diff --git a/src/src/drtables.c b/src/src/drtables.c index 800d9e4db..9dd369a43 100644 --- a/src/src/drtables.c +++ b/src/src/drtables.c @@ -573,7 +573,7 @@ extern lookup_module_info dsearch_lookup_module_info; #if defined(LOOKUP_IBASE) && LOOKUP_IBASE!=2 extern lookup_module_info ibase_lookup_module_info; #endif -#if defined(LOOKUP_JSON) +#if defined(LOOKUP_JSON) && LOOKUP_JSON!=2 extern lookup_module_info json_lookup_module_info; #endif #if defined(LOOKUP_LDAP) @@ -663,7 +663,7 @@ addlookupmodule(NULL, &ibase_lookup_module_info); addlookupmodule(NULL, &ldap_lookup_module_info); #endif -#ifdef LOOKUP_JSON +#if defined(LOOKUP_JSON) && LOOKUP_JSON!=2 addlookupmodule(NULL, &json_lookup_module_info); #endif