ports/net-p2p/retroshare/files/patch-retroshare-gui_src_gui_elastic_fft.h
Yuri Victorovich db570fdb0a net-p2p/retroshare: Update to 0.6.3
Additional port changes:
* Changed to DISTVERSION
* Added LICENSE_FILE
* Updated USE_GNOME, USE_QT5
* Removed INSTALLS_ICONS

PR:		224661
Submitted by:	peter@netkey.at (maintainer)
Approved by:	tcberner (mentor, implicit)
2018-02-22 07:55:38 +00:00

21 lines
490 B
C++

--- retroshare-gui/src/gui/elastic/fft.h.orig 2017-04-21 15:57:46 UTC
+++ retroshare-gui/src/gui/elastic/fft.h
@@ -85,6 +85,7 @@
#pragma once
#include <math.h>
+#include <sys/param.h>
class fft
{
@@ -106,6 +107,9 @@
for (j = 2; j <= nwh - 2; j += 2) {
#ifdef __APPLE__
__sincos(delta*j,&y,&x);
+#elif defined __clang__ && defined __FreeBSD_version && __FreeBSD_version < 1200000
+ x = cos(delta * j);
+ y = sin(delta * j);
#else
sincos(delta*j,&y,&x) ;
#endif