- define MAXINT on mac os x
@@ -13,7 +13,11 @@ LIBS=
DEFS += -DOPENSER_MOD_INTERFACE
DEFS += -I/usr/include/libxml2
-LIBS += -L$(LOCALBASE)/lib -lxml2 -lrt
+LIBS += -L$(LOCALBASE)/lib -lxml2
+
+ifneq ($(OS),darwin)
+ LIBS += -lrt
+endif
SERLIBPATH=../../lib
@@ -49,14 +49,21 @@
#include "../../sr_module.h"
#include "../../modules/tm/tm_load.h"
#include "mod.h"
+#ifndef __OS_darwin
#include <values.h>
-
+#endif
#include "../../mem/shm_mem.h"
#include "../../dset.h"
#include "../../timer.h"
+#ifdef __OS_darwin
+#ifndef MAXINT
+#define MAXINT INT_MAX
/** S-CSCF list element */
typedef struct _scscf_entry {
@@ -12,7 +12,11 @@ LIBS=
SER_LIBS+=$(SERLIBPATH)/ims/kamailio_ims
DEFS+=-DOPENSER_MOD_INTERFACE -I/usr/include/libxml2 -I$(LOCALBASE)/include/libxml2
-LIBS += -L$(LOCALBASE)/lib -lrt
+LIBS += -L$(LOCALBASE)/lib
SER_LIBS+=$(SERLIBPATH)/kcore/kcore
DEFS+=-DOPENSER_MOD_INTERFACE