[Asterisk-cvs] asterisk/agi Makefile, 1.8, 1.9 eagi-sphinx-test.c,
1.3, 1.4 eagi-test.c, 1.2, 1.3
markster at lists.digium.com
markster at lists.digium.com
Tue Dec 14 18:39:43 CST 2004
Update of /usr/cvsroot/asterisk/agi
In directory mongoose.digium.com:/tmp/cvs-serv25047/agi
Modified Files:
Makefile eagi-sphinx-test.c eagi-test.c
Log Message:
Merge slimey's Solaris compatibility (with small mods) (bug #2740)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/agi/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile 22 Jun 2004 17:42:13 -0000 1.8
+++ Makefile 14 Dec 2004 23:36:29 -0000 1.9
@@ -15,6 +15,11 @@
CFLAGS+=
+LIBS=
+ifeq ($(OSARCH),SunOS)
+LIBS=-lsocket -lnsl ../strcompat.o
+endif
+
all: depend $(AGIS)
install: all
@@ -22,10 +27,10 @@
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
eagi-test: eagi-test.o
- $(CC) $(CFLAGS) -o eagi-test eagi-test.o
+ $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
eagi-sphinx-test: eagi-sphinx-test.o
- $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o
+ $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS)
clean:
rm -f *.so *.o look .depend eagi-test eagi-sphinx-test
Index: eagi-sphinx-test.c
===================================================================
RCS file: /usr/cvsroot/asterisk/agi/eagi-sphinx-test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- eagi-sphinx-test.c 8 Sep 2003 16:48:06 -0000 1.3
+++ eagi-sphinx-test.c 14 Dec 2004 23:36:29 -0000 1.4
@@ -17,6 +17,9 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
+#ifdef SOLARIS
+#include <solaris-compat/compat.h>
+#endif
#define AUDIO_FILENO (STDERR_FILENO + 1)
Index: eagi-test.c
===================================================================
RCS file: /usr/cvsroot/asterisk/agi/eagi-test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- eagi-test.c 26 Feb 2003 19:41:09 -0000 1.2
+++ eagi-test.c 14 Dec 2004 23:36:29 -0000 1.3
@@ -11,6 +11,9 @@
#include <errno.h>
#include <string.h>
#include <sys/select.h>
+#ifdef SOLARIS
+#include <solaris-compat/compat.h>
+#endif
#define AUDIO_FILENO (STDERR_FILENO + 1)
More information about the svn-commits
mailing list