[Asterisk-cvs] asterisk/utils Makefile,1.6,1.7 smsq.c,1.5,1.6
markster at lists.digium.com
markster at lists.digium.com
Thu Mar 17 17:16:54 CST 2005
Update of /usr/cvsroot/asterisk/utils
In directory mongoose.digium.com:/tmp/cvs-serv1645/utils
Modified Files:
Makefile smsq.c
Log Message:
Add support for Solaris/x86 (bug #3064)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/utils/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Makefile 21 Jan 2005 03:56:22 -0000 1.6
+++ Makefile 17 Mar 2005 23:12:15 -0000 1.7
@@ -12,6 +12,9 @@
TARGET+=$(shell if [ -f /usr/include/popt.h ]; then echo "smsq"; else if [ -f /usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
TARGET+=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
+ifeq (${OSARCH},SunOS)
+SOL=../strcompat.o
+endif
all: depend $(TARGET)
@@ -32,7 +35,7 @@
$(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
smsq: smsq.o
- $(CC) $(CFLAGS) -o smsq smsq.o -lpopt
+ $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
ifneq ($(wildcard .depend),)
include .depend
Index: smsq.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils/smsq.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- smsq.c 21 Jan 2005 07:06:25 -0000 1.5
+++ smsq.c 17 Mar 2005 23:12:15 -0000 1.6
@@ -9,6 +9,11 @@
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
+#ifdef SOLARIS
+#include <solaris-compat/compat.h>
+#define POPT_ARGFLAG_SHOW_DEFAULT 0x00800000
+#endif
+
/* SMS queuing application for use with asterisk app_sms */
/* by Adrian Kennard, 2004 - 2005 */
More information about the svn-commits
mailing list