summaryrefslogtreecommitdiff
path: root/audio/deadbeef/files/patch-fft.c
diff options
context:
space:
mode:
authorVeniamin Gvozdikov <vg@FreeBSD.org>2014-07-30 17:51:18 +0000
committerVeniamin Gvozdikov <vg@FreeBSD.org>2014-07-30 17:51:18 +0000
commit360c15d05bab6142652ec34d28f777e68895c3ec (patch)
treeb1aa1dbc1caae79f6e2888fc690124572ca0824d /audio/deadbeef/files/patch-fft.c
parentnet/rtptools: pass maintainership (diff)
- Upgrade to 0.6.2-rc4
Notes
Notes: svn path=/head/; revision=363498
Diffstat (limited to 'audio/deadbeef/files/patch-fft.c')
-rw-r--r--audio/deadbeef/files/patch-fft.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/deadbeef/files/patch-fft.c b/audio/deadbeef/files/patch-fft.c
new file mode 100644
index 000000000000..d68f37406591
--- /dev/null
+++ b/audio/deadbeef/files/patch-fft.c
@@ -0,0 +1,13 @@
+--- fft.c.orig 2014-02-24 13:56:57.244236013 +0400
++++ fft.c 2014-02-24 13:57:16.293650674 +0400
+@@ -27,6 +27,10 @@
+ #include <math.h>
+ #include <complex.h>
+
++#if __FreeBSD_version < 902000
++# define cexpf(x) (expf(crealf(x))*(cosf(cimagf(x))+sinf(cimagf(x))*I))
++#endif
++
+ #define N (DDB_FREQ_BANDS * 2)
+
+ static float hamming[N]; /* hamming window, scaled to sum to 1 */