 + 
 + 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-23 06:38:41.924167363 +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
++--- io_wait.h.orig	2015-08-27 15:06:47 UTC
+ +++ io_wait.h
 -@@ -56,6 +56,7 @@
-+--- io_wait.h.orig	2015-11-23 01:45:15.316221735 +0800
-++++ io_wait.h	2015-11-23 01:50:17.419199577 +0800
 +@@ -56,6 +56,9 @@
   
   #include <errno.h>

 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
@@ -1,15 +1,15 @@
---- Makefile.orig	2015-04-22 08:20:03 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 @@
  # 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

- 			goto error;
diff -ruN opensips.orig/files/patch-mem__shm_mem.h opensips/files/patch-mem__shm_mem.h
--- opensips.orig/files/patch-mem__shm_mem.h	1970-01-01 07:30:00.000000000 +0730
+++ opensips/files/patch-mem__shm_mem.h	2015-11-24 13:03:19.835459729 +0800
@@ -0,0 +1,10 @@
+--- mem/shm_mem.h.orig	2015-08-27 15:06:47 UTC
++++ mem/shm_mem.h
+@@ -62,6 +62,7 @@
+ 	#endif
+ #endif
