Module: kamailio
Branch: master
Commit: 2c622a6183dab5c5f50c8d46436bed014eae1146
URL:
https://github.com/kamailio/kamailio/commit/2c622a6183dab5c5f50c8d46436bed0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-06T09:16:53+02:00
core: define OS_NAME at startup
---
Modified: src/core/ppcfg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2c622a6183dab5c5f50c8d46436bed0…
Patch:
https://github.com/kamailio/kamailio/commit/2c622a6183dab5c5f50c8d46436bed0…
---
diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index cfb70dc02e..34f1c224fb 100644
--- a/src/core/ppcfg.c
+++ b/src/core/ppcfg.c
@@ -354,6 +354,15 @@ void pp_define_core(void)
LM_ERR("error setting version define value\n");
return;
}
+
+ if(pp_define(strlen("OS_NAME"), "OS_NAME")<0) {
+ LM_ERR("unable to set cfg define OS_NAME\n");
+ return;
+ }
+ if(pp_define_set(strlen(OS_QUOTED), OS_QUOTED, KSR_PPDEF_NORMAL)<0) {
+ LM_ERR("error setting OS_NAME define value\n");
+ return;
+ }
}
/* vi: set ts=4 sw=4 tw=79:ai:cindent: */