Use .dylib not .so for dynamic libraries on MacOS
[exim.git] / src / src / drtables.c
index 018c496f8dd738987d2f040f0be5bd4db6047481..37ecf4f4b8cf92790a6fd3dfe292351538b82c79 100644 (file)
@@ -450,7 +450,8 @@ void init_lookup_list(void)
 {
   DIR *dd;
   struct dirent *ent;
-  const pcre *regex_islookupmod = regex_must_compile(US"\\.so$", FALSE, TRUE);
+  const pcre *regex_islookupmod = regex_must_compile(
+      US"\\." DYNLIB_FN_EXT "$", FALSE, TRUE);
   int countmodules = 0;
   int moduleerrors = 0;
   struct lookupmodulestr *p;