[Asterisk-cvs] asterisk/codecs/lpc10 Makefile,1.3,1.4 lpc10.h,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Sun Oct 26 12:24:44 CST 2003


Update of /usr/cvsroot/asterisk/codecs/lpc10
In directory mongoose.digium.com:/tmp/cvs-serv12438/codecs/lpc10

Modified Files:
	Makefile lpc10.h 
Log Message:
Make it build and run on MacOS X


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/lpc10/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile	27 Apr 2003 18:13:11 -0000	1.3
+++ Makefile	26 Oct 2003 18:50:49 -0000	1.4
@@ -26,8 +26,10 @@
 #CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
 
 #fix for PPC processors
+ifneq ($(OSARCH),Darwin)
 ifneq ($(PROC),ppc)
 	CFLAGS+= -march=$(PROC)
+endif
 endif
 
 LIB = $(LIB_TARGET_DIR)/liblpc10.a

Index: lpc10.h
===================================================================
RCS file: /usr/cvsroot/asterisk/codecs/lpc10/lpc10.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- lpc10.h	23 Apr 2003 19:13:35 -0000	1.2
+++ lpc10.h	26 Oct 2003 18:50:49 -0000	1.3
@@ -1,6 +1,9 @@
 /*
 
 $Log$
+Revision 1.3  2003/10/26 18:50:49  markster
+Make it build and run on MacOS X
+
 Revision 1.2  2003/04/23 19:13:35  markster
 More OpenBSD patches
 
@@ -46,6 +49,10 @@
 typedef long		INT32;
 #endif
 
+#if defined(__APPLE__)
+typedef short		INT16;
+typedef int		INT32;
+#endif
 
 
 /* The initial values for every member of this structure is 0, except




More information about the svn-commits mailing list