diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-17 23:12:15 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-17 23:12:15 +0000 |
commit | 57710533e753388fd7a1721f66a4d847c8b6e44b (patch) | |
tree | 3fa0c3a5fb61e3662f4353566a235dca4291f79a /utils | |
parent | 3c174d1548595cc0b59a08b7b10dad9f8145471b (diff) |
Add support for Solaris/x86 (bug #3064)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5199 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/Makefile | 5 | ||||
-rwxr-xr-x | utils/smsq.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/utils/Makefile b/utils/Makefile index dcacce210..a3f04d10f 100755 --- a/utils/Makefile +++ b/utils/Makefile @@ -12,6 +12,9 @@ TARGET=stereorize 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 @@ stereorize: stereorize.o frame.o $(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 diff --git a/utils/smsq.c b/utils/smsq.c index 9bdcfe353..0da4c83db 100755 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -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 */ |