Module: kamailio
Branch: master
Commit: 888fd8e287a6acc9313963d4d9b9af69127c0490
URL:
https://github.com/kamailio/kamailio/commit/888fd8e287a6acc9313963d4d9b9af6…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-01-26T01:04:55+02:00
modules/ims_icscf: removes values.h dependency
Did not compile on FreeBSD 10.
---
Modified: modules/ims_icscf/cxdx_lir.c
Modified: modules/ims_icscf/scscf_list.c
Modified: modules/ims_icscf/scscf_list.h
---
Diff:
https://github.com/kamailio/kamailio/commit/888fd8e287a6acc9313963d4d9b9af6…
Patch:
https://github.com/kamailio/kamailio/commit/888fd8e287a6acc9313963d4d9b9af6…
---
diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c
index be18eb7..f1731bf 100644
--- a/modules/ims_icscf/cxdx_lir.c
+++ b/modules/ims_icscf/cxdx_lir.c
@@ -51,10 +51,8 @@
#include "mod.h"
#include "location.h"
-#if defined (__OS_freebsd)
-#include "sys/limits.h"
+#include "limits.h"
#define MAXINT INT_MAX
-#endif
//we use pseudo variables to communicate back to config file this takes the result and
converys to a return code, publishes it a pseudo variable
int create_lia_return_code(int result) {
diff --git a/modules/ims_icscf/scscf_list.c b/modules/ims_icscf/scscf_list.c
index 1d21ba3..ee8b743 100644
--- a/modules/ims_icscf/scscf_list.c
+++ b/modules/ims_icscf/scscf_list.c
@@ -47,11 +47,6 @@
#include "db.h"
#include "../../lib/ims/useful_defs.h"
-#if defined (__OS_freebsd)
-#include "sys/limits.h"
-#define MAXINT INT_MAX
-#endif
-
extern int scscf_entry_expiry; //time for scscf entries to remain the scscf_list
extern struct tm_binds tmb; //Structure with pointers to tm funcs
diff --git a/modules/ims_icscf/scscf_list.h b/modules/ims_icscf/scscf_list.h
index b3d4cfd..ba29e1c 100644
--- a/modules/ims_icscf/scscf_list.h
+++ b/modules/ims_icscf/scscf_list.h
@@ -49,20 +49,16 @@
#include "../../sr_module.h"
#include "../../modules/tm/tm_load.h"
#include "mod.h"
-#ifndef __OS_darwin
-#include <values.h>
-#endif
+#include <limits.h>
#include "../../mem/shm_mem.h"
#include "../../dset.h"
#include "../../timer.h"
-#ifdef __OS_darwin
#ifndef MAXINT
#define MAXINT INT_MAX
#endif
-#endif
/** S-CSCF list element */