mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
FreeBSD patch, take 2
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -22,6 +22,7 @@ MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
|
||||
MODSPEEX=$(shell [ -f /usr/include/speex.h ] || [ -f /usr/local/include/speex.h ] && echo "codec_speex.so")
|
||||
MODILBC=$(shell [ -f ilbc/iLBC_decode.h ] && echo "codec_ilbc.so")
|
||||
CFLAGS+=-fPIC
|
||||
CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")
|
||||
|
||||
LIBG723=g723.1/libg723.a
|
||||
LIBG723B=g723.1b/libg723b.a
|
||||
@@ -30,7 +31,8 @@ LIBGSM=$(shell if uname -m | grep -q 86; then echo gsm/lib/libgsm.a; else echo "
|
||||
LIBGSMT=$(shell if uname -m | grep -q 86; then echo gsm/lib/libgsm.a; fi)
|
||||
LIBMP3=mp3/libmp3.a
|
||||
LIBLPC10=lpc10/liblpc10.a
|
||||
LIBSPEEX=-lspeex -lm
|
||||
LIBSPEEX=$(shell [ -f /usr/local/lib/libspeex.a ] && echo "-L/usr/local/lib")
|
||||
LIBSPEEX+=-lspeex -lm
|
||||
LIBILBC=ilbc/libilbc.a
|
||||
|
||||
CODECS+=$(MODG723) $(MODSPEEX) $(MODILBC) codec_gsm.so codec_mp3_d.so codec_lpc10.so \
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
/*
|
||||
|
||||
$Log$
|
||||
Revision 1.16 2003/10/16 21:11:29 martinp
|
||||
Revision 1.17 2003/10/21 02:57:29 markster
|
||||
FreeBSD patch, take 2
|
||||
|
||||
Revision 1.16 2003/10/18 00:26:43 tholo
|
||||
Revert the previous patch since it's braking compilation
|
||||
|
||||
Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
@@ -37,7 +40,7 @@ extern int lpcini_(void);
|
||||
|
||||
#include "f2c.h"
|
||||
|
||||
#include <malloc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* Common Block Declarations */
|
||||
|
||||
@@ -51,9 +54,12 @@ struct {
|
||||
/* ***************************************************************** */
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2003/10/16 21:11:29 martinp
|
||||
* Revert the previous patch since it's braking compilation
|
||||
* Revision 1.17 2003/10/21 02:57:29 markster
|
||||
* FreeBSD patch, take 2
|
||||
*
|
||||
/* Revision 1.16 2003/10/18 00:26:43 tholo
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
@@ -83,9 +89,12 @@ struct {
|
||||
{
|
||||
|
||||
/* $Log$
|
||||
* Revision 1.16 2003/10/16 21:11:29 martinp
|
||||
* Revert the previous patch since it's braking compilation
|
||||
* Revision 1.17 2003/10/21 02:57:29 markster
|
||||
* FreeBSD patch, take 2
|
||||
*
|
||||
/* Revision 1.16 2003/10/18 00:26:43 tholo
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
@@ -115,9 +124,12 @@ struct {
|
||||
/* LPC Configuration parameters: */
|
||||
/* Frame size, Prediction order, Pitch period */
|
||||
/* $Log$
|
||||
* Revision 1.16 2003/10/16 21:11:29 martinp
|
||||
* Revert the previous patch since it's braking compilation
|
||||
* Revision 1.17 2003/10/21 02:57:29 markster
|
||||
* FreeBSD patch, take 2
|
||||
*
|
||||
/* Revision 1.16 2003/10/18 00:26:43 tholo
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
/* Revision 1.3 2003/10/16 21:11:30 martinp
|
||||
/* Revert the previous patch since it's braking compilation
|
||||
/*
|
||||
|
||||
@@ -37,6 +37,13 @@ ____________________________________________________________________________*/
|
||||
/* #define GLOBAL_GAIN_SCALE 0 */
|
||||
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#ifdef __i386__
|
||||
#undef LITTLE_ENDIAN
|
||||
#define LITTLE_ENDIAN 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _M_IX86
|
||||
#define LITTLE_ENDIAN 1
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user