[exim-cvs] JSON: support loadable-module build

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] JSON: support loadable-module build
Gitweb: https://git.exim.org/exim.git/commitdiff/c5ccc6b8b3efcf06b724019643dbc4398ee6c71b
Commit:     c5ccc6b8b3efcf06b724019643dbc4398ee6c71b
Parent:     b904efc3a1bb105461139e010d330caf32af0657
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Aug 9 17:52:15 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Aug 9 18:15:02 2024 +0100


    JSON: support loadable-module build
---
 doc/doc-txt/NewStuff | 2 ++
 src/src/drtables.c   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)


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


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/