  DEFS+= -DSHM_MMAP #Use mmap instead of SYSV shared memory
 diff -ruN opensips.orig/files/patch-Makefile opensips/files/patch-Makefile
 --- opensips.orig/files/patch-Makefile	2015-10-02 00:34:41.000000000 +0800
-+++ opensips/files/patch-Makefile	2015-11-23 01:44:13.646238531 +0800
++++ opensips/files/patch-Makefile	2015-11-24 13:03:19.816460147 +0800
 @@ -1,15 +1,15 @@
 ---- Makefile.orig	2015-04-22 08:20:03 UTC
--+++ Makefile
++--- Makefile.orig	2015-08-27 15:06:47 UTC
+ +++ Makefile
 -@@ -39,7 +39,7 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yac
-+--- Makefile.orig	2015-11-23 01:43:09.236230162 +0800
-++++ Makefile	2015-11-23 01:42:48.605228541 +0800
-+@@ -46,7 +46,7 @@
++@@ -46,7 +46,7 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yac
   # whether or not to install opensips.cfg or just opensips.cfg.default
 - # (opensips.cfg will never be overwritten by make install, this is usefull
 + # (opensips.cfg will never be overwritten by make install, this is useful

+ #include "common.h"
diff -ruN opensips.orig/files/patch-modules__proto_tls__proto_tls.c opensips/files/patch-modules__proto_tls__proto_tls.c
--- opensips.orig/files/patch-modules__proto_tls__proto_tls.c	1970-01-01 07:30:00.000000000 +0730
+++ opensips/files/patch-modules__proto_tls__proto_tls.c	2015-11-24 05:02:42.070450456 +0800
@@ -0,0 +1,10 @@
+--- modules/proto_tls/proto_tls.c.orig	2015-08-27 23:06:47.000000000 +0800
++++ modules/proto_tls/proto_tls.c	2015-11-24 04:59:44.764931027 +0800
+@@ -42,6 +42,7 @@
+ #include <openssl/opensslv.h>
+ #include <openssl/err.h>

+ 
+ install-console: $(bin-prefix)/$(bin-dir)
+ 		# install osipsconsole
diff -ruN opensips.orig/files/patch-Makefile.defs opensips/files/patch-Makefile.defs
--- opensips.orig/files/patch-Makefile.defs	2015-10-02 00:34:41.000000000 +0800
+++ opensips/files/patch-Makefile.defs	2015-11-24 13:03:19.822459868 +0800
@@ -1,4 +1,4 @@
---- Makefile.defs.orig	2015-05-07 16:45:43 UTC
+--- Makefile.defs.orig	2015-08-27 15:06:47 UTC
 +++ Makefile.defs
 @@ -118,6 +118,14 @@ ifeq ($(OS),solaris)
  		ISSMP ?= yes
diff -ruN opensips.orig/files/patch-io_wait.h opensips/files/patch-io_wait.h
--- opensips.orig/files/patch-io_wait.h	2015-10-02 00:34:41.000000000 +0800
+++ opensips/files/patch-io_wait.h	2015-11-24 13:03:19.829459449 +0800
@@ -1,34 +1,12 @@
---- io_wait.h.orig	2015-05-07 14:13:54 UTC
+--- io_wait.h.orig	2015-08-27 15:06:47 UTC
 +++ io_wait.h
-@@ -56,6 +56,7 @@
+@@ -56,6 +56,9 @@
  
  #include <errno.h>
