mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Add support for Solaris/x86 (bug #3064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user