Module: kamailio
Branch: master
Commit: a8769af4c3a497d0f6a81cff17861e566ffa87bc
URL:
https://github.com/kamailio/kamailio/commit/a8769af4c3a497d0f6a81cff17861e5…
Author: drTr0jan <drtr0jan(a)yandex.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-12T13:52:38+02:00
core: fix ksr_version_control() for FreeBSD build
---
Modified: src/core/sr_module.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a8769af4c3a497d0f6a81cff17861e5…
Patch:
https://github.com/kamailio/kamailio/commit/a8769af4c3a497d0f6a81cff17861e5…
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index 2d787d7f9f3..013598c2a76 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -347,6 +347,9 @@ int ksr_version_control(void *handle, char *path)
char **m_flags;
char* error;
+#ifdef __FreeBSD__
+ (void) dlerror();
+#endif
m_ver=(char **)dlsym(handle, "module_version");
if ((error=(char *)dlerror())!=0) {
LM_ERR("no version info in module <%s>: %s\n", path, error);