1.1 --- a/opensips/opensips.patch Tue Aug 28 18:31:20 2012 +0200 1.2 +++ b/opensips/opensips.patch Tue Aug 28 18:31:35 2012 +0200 1.3 @@ -2,7 +2,7 @@ 1.4 diff -Nau main.c.orig main.c 1.5 --- main.c.orig 2012-03-21.orig 10:29:31.458420799 +0100 1.6 +++ main.c 2012-03-21 10:30:52.034994020 +0100 1.7 -@@ -1025,6 +1025,10 @@ 1.8 +@@ -1029,6 +1029,10 @@ 1.9 ret=-1; 1.10 my_argc=argc; my_argv=argv; 1.11 1.12 @@ -10,10 +10,10 @@ 1.13 + /* ...so unconditionally log to syslog for now */ 1.14 + openlog(argv[0], LOG_PID|LOG_CONS, log_facility); 1.15 + 1.16 - /*init pkg mallocs (before parsing cfg or cmd line !)*/ 1.17 - if (init_pkg_mallocs()==-1) 1.18 - goto error00; 1.19 -@@ -1357,6 +1361,11 @@ 1.20 + /* process pkg mem size from command line */ 1.21 + opterr=0; 1.22 + options="f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"; 1.23 +@@ -1387,6 +1391,11 @@ 1.24 1.25 /* init_daemon? */ 1.26 if (!dont_fork){ 1.27 @@ -38,7 +38,7 @@ 1.28 LOCALBASE ?= $(SYSBASE)/local 1.29 endif 1.30 endif 1.31 -@@ -1432,6 +1432,10 @@ 1.32 +@@ -1411,6 +1411,10 @@ 1.33 LIBS+= -lsctp 1.34 endif 1.35 1.36 @@ -74,7 +74,7 @@ 1.37 use IO::Socket; 1.38 use Socket; 1.39 #use Net::IP; 1.40 -@@ -378,6 +377,12 @@ 1.41 +@@ -376,6 +375,12 @@ 1.42 } 1.43 } 1.44 1.45 @@ -225,3 +225,32 @@ 1.46 d = d->next; 1.47 } 1.48 return 0; 1.49 +Index: menuconfig/Makefile 1.50 +diff -Nau menuconfig/Makefile.orig menuconfig/Makefile 1.51 +--- menuconfig/Makefile.orig 2012-03-26 12:11:03.000000000 +0200 1.52 ++++ menuconfig/Makefile 2012-08-21 21:44:18.781092313 +0200 1.53 +@@ -5,10 +5,10 @@ 1.54 + CFLAGS=-g -Wall -DMENUCONFIG_CFG_PATH=\"$(MENUCONFIG_CFG_PATH)\" \ 1.55 + -DMENUCONFIG_GEN_PATH=\"$(MENUCONFIG_GEN_PATH)\" \ 1.56 + -DMENUCONFIG_HAVE_SOURCES=$(MENUCONFIG_HAVE_SOURCES) 1.57 +-MY_LDFLAGS=-lcurses 1.58 ++MY_LDFLAGS=-lncurses 1.59 + EXEC_NAME=configure 1.60 + all: $(MENUCONFIG_FILES) 1.61 +- $(CC) -o $(EXEC_NAME) $(CFLAGS) $^ $(MY_LDFLAGS) 1.62 ++ $(CC) -o $(EXEC_NAME) $(CFLAGS) $(CPPFLAGS) $^ $(LDFLAGS) $(LIBS) 1.63 + 1.64 + proper: 1.65 + rm -f $(EXEC_NAME) 1.66 +Index: menuconfig/Makefile 1.67 +diff -Nau menuconfig/Makefile.orig menuconfig/Makefile 1.68 +--- menuconfig/curses.c.orig 2012-03-23 11:47:37.000000000 +0100 1.69 ++++ menuconfig/curses.c 2012-08-21 21:49:29.506561887 +0200 1.70 +@@ -28,6 +28,7 @@ 1.71 + #include<string.h> 1.72 + 1.73 + #include<sys/ioctl.h> 1.74 ++#include<sys/termio.h> 1.75 + #include<errno.h> 1.76 + 1.77 + #include "curses.h"