[sr-dev] git:master: ims_icscf: fix include list for BSD

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 15 09:04:18 CET 2013


Module: sip-router
Branch: master
Commit: e930f94b71d2e5c40fa44d78738ce5efb747c5b1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e930f94b71d2e5c40fa44d78738ce5efb747c5b1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Mar 15 09:03:26 2013 +0100

ims_icscf: fix include list for BSD

- patch by Victor V. Kustov

---

 modules/ims_icscf/cxdx_lir.c   |    5 +++++
 modules/ims_icscf/scscf_list.c |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c
index faabd85..24686e7 100644
--- a/modules/ims_icscf/cxdx_lir.c
+++ b/modules/ims_icscf/cxdx_lir.c
@@ -51,6 +51,11 @@
 #include "mod.h"
 #include "location.h"
 
+#if defined (__OS_freebsd)
+#include "sys/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) {
     int rc;
diff --git a/modules/ims_icscf/scscf_list.c b/modules/ims_icscf/scscf_list.c
index bd5216c..8b6b79c 100644
--- a/modules/ims_icscf/scscf_list.c
+++ b/modules/ims_icscf/scscf_list.c
@@ -47,6 +47,11 @@
 #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




More information about the sr-dev mailing list