aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2006-07-20 20:34:59 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2006-07-20 20:34:59 +0000
commit7a11d3b7e0042c07184a5d463ec9f4bd68ae5a1a (patch)
treeddeabb624029907e08620edde07b6c221707a834
parentb89b0482ed9fc3be5da2210632e876b2c2ba3441 (diff)
downloadports-7a11d3b7e0042c07184a5d463ec9f4bd68ae5a1a.tar.gz
ports-7a11d3b7e0042c07184a5d463ec9f4bd68ae5a1a.zip
Fix on FreeBSD < 5.3.
Reported by: Andriy I Pylypenko <bamby@ua.fm>
Notes
Notes: svn path=/head/; revision=168334
-rw-r--r--comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h11
-rw-r--r--comms/spandsp-devel/files/patch-src::awgn.c13
-rw-r--r--comms/spandsp-devel/files/patch-src::tone_generate.c13
-rw-r--r--comms/spandsp-devel/files/patch-src::v17tx.c13
-rw-r--r--comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h11
-rw-r--r--comms/spandsp-devel5/files/patch-src::awgn.c13
-rw-r--r--comms/spandsp-devel5/files/patch-src::tone_generate.c13
-rw-r--r--comms/spandsp-devel5/files/patch-src::v17tx.c13
-rw-r--r--comms/spandsp/files/patch-src-spandsp-dc_restore.h11
-rw-r--r--comms/spandsp/files/patch-src::awgn.c13
-rw-r--r--comms/spandsp/files/patch-src::tone_generate.c13
-rw-r--r--comms/spandsp/files/patch-src::v17tx.c13
12 files changed, 135 insertions, 15 deletions
diff --git a/comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h b/comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h
index 2b4ea48bf832..dec6fcf8e048 100644
--- a/comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h
+++ b/comms/spandsp-devel/files/patch-src-spandsp-dc_restore.h
@@ -3,14 +3,15 @@ $FreeBSD$
--- src/spandsp/dc_restore.h.orig
+++ src/spandsp/dc_restore.h
-@@ -109,5 +109,10 @@
- }
- #endif
+@@ -53,6 +53,11 @@
+ clean_sample = sample - (dc_bias >> 15);
+ */
+#ifndef INT16_MAX
+#define INT16_MAX 0x7fff
+#define INT16_MIN (-0x7fff-1)
+#endif
+
- #endif
- /*- End of file ------------------------------------------------------------*/
+ /*!
+ Zero DC restoration descriptor. This defines the working state for a single
+ instance of DC content filter.
diff --git a/comms/spandsp-devel/files/patch-src::awgn.c b/comms/spandsp-devel/files/patch-src::awgn.c
new file mode 100644
index 000000000000..b4a45a08bb4e
--- /dev/null
+++ b/comms/spandsp-devel/files/patch-src::awgn.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/awgn.c
++++ src/awgn.c
+@@ -51,6 +51,7 @@
+ #include <stdio.h>
+ #include <inttypes.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/dc_restore.h"
+ #include "spandsp/awgn.h"
diff --git a/comms/spandsp-devel/files/patch-src::tone_generate.c b/comms/spandsp-devel/files/patch-src::tone_generate.c
new file mode 100644
index 000000000000..e0a5f895152b
--- /dev/null
+++ b/comms/spandsp-devel/files/patch-src::tone_generate.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/tone_generate.c
++++ src/tone_generate.c
+@@ -39,6 +39,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <fcntl.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/dc_restore.h"
diff --git a/comms/spandsp-devel/files/patch-src::v17tx.c b/comms/spandsp-devel/files/patch-src::v17tx.c
new file mode 100644
index 000000000000..00d8803ec315
--- /dev/null
+++ b/comms/spandsp-devel/files/patch-src::v17tx.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/v17tx.c
++++ src/v17tx.c
+@@ -39,6 +39,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/logging.h"
diff --git a/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h b/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h
index 2b4ea48bf832..dec6fcf8e048 100644
--- a/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h
+++ b/comms/spandsp-devel5/files/patch-src-spandsp-dc_restore.h
@@ -3,14 +3,15 @@ $FreeBSD$
--- src/spandsp/dc_restore.h.orig
+++ src/spandsp/dc_restore.h
-@@ -109,5 +109,10 @@
- }
- #endif
+@@ -53,6 +53,11 @@
+ clean_sample = sample - (dc_bias >> 15);
+ */
+#ifndef INT16_MAX
+#define INT16_MAX 0x7fff
+#define INT16_MIN (-0x7fff-1)
+#endif
+
- #endif
- /*- End of file ------------------------------------------------------------*/
+ /*!
+ Zero DC restoration descriptor. This defines the working state for a single
+ instance of DC content filter.
diff --git a/comms/spandsp-devel5/files/patch-src::awgn.c b/comms/spandsp-devel5/files/patch-src::awgn.c
new file mode 100644
index 000000000000..b4a45a08bb4e
--- /dev/null
+++ b/comms/spandsp-devel5/files/patch-src::awgn.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/awgn.c
++++ src/awgn.c
+@@ -51,6 +51,7 @@
+ #include <stdio.h>
+ #include <inttypes.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/dc_restore.h"
+ #include "spandsp/awgn.h"
diff --git a/comms/spandsp-devel5/files/patch-src::tone_generate.c b/comms/spandsp-devel5/files/patch-src::tone_generate.c
new file mode 100644
index 000000000000..e0a5f895152b
--- /dev/null
+++ b/comms/spandsp-devel5/files/patch-src::tone_generate.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/tone_generate.c
++++ src/tone_generate.c
+@@ -39,6 +39,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <fcntl.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/dc_restore.h"
diff --git a/comms/spandsp-devel5/files/patch-src::v17tx.c b/comms/spandsp-devel5/files/patch-src::v17tx.c
new file mode 100644
index 000000000000..00d8803ec315
--- /dev/null
+++ b/comms/spandsp-devel5/files/patch-src::v17tx.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/v17tx.c
++++ src/v17tx.c
+@@ -39,6 +39,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/logging.h"
diff --git a/comms/spandsp/files/patch-src-spandsp-dc_restore.h b/comms/spandsp/files/patch-src-spandsp-dc_restore.h
index 2b4ea48bf832..dec6fcf8e048 100644
--- a/comms/spandsp/files/patch-src-spandsp-dc_restore.h
+++ b/comms/spandsp/files/patch-src-spandsp-dc_restore.h
@@ -3,14 +3,15 @@ $FreeBSD$
--- src/spandsp/dc_restore.h.orig
+++ src/spandsp/dc_restore.h
-@@ -109,5 +109,10 @@
- }
- #endif
+@@ -53,6 +53,11 @@
+ clean_sample = sample - (dc_bias >> 15);
+ */
+#ifndef INT16_MAX
+#define INT16_MAX 0x7fff
+#define INT16_MIN (-0x7fff-1)
+#endif
+
- #endif
- /*- End of file ------------------------------------------------------------*/
+ /*!
+ Zero DC restoration descriptor. This defines the working state for a single
+ instance of DC content filter.
diff --git a/comms/spandsp/files/patch-src::awgn.c b/comms/spandsp/files/patch-src::awgn.c
new file mode 100644
index 000000000000..b4a45a08bb4e
--- /dev/null
+++ b/comms/spandsp/files/patch-src::awgn.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/awgn.c
++++ src/awgn.c
+@@ -51,6 +51,7 @@
+ #include <stdio.h>
+ #include <inttypes.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/dc_restore.h"
+ #include "spandsp/awgn.h"
diff --git a/comms/spandsp/files/patch-src::tone_generate.c b/comms/spandsp/files/patch-src::tone_generate.c
new file mode 100644
index 000000000000..e0a5f895152b
--- /dev/null
+++ b/comms/spandsp/files/patch-src::tone_generate.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/tone_generate.c
++++ src/tone_generate.c
+@@ -39,6 +39,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <fcntl.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/dc_restore.h"
diff --git a/comms/spandsp/files/patch-src::v17tx.c b/comms/spandsp/files/patch-src::v17tx.c
new file mode 100644
index 000000000000..00d8803ec315
--- /dev/null
+++ b/comms/spandsp/files/patch-src::v17tx.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- src/v17tx.c
++++ src/v17tx.c
+@@ -39,6 +39,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
++#include <tgmath.h>
+
+ #include "spandsp/telephony.h"
+ #include "spandsp/logging.h"