aboutsummaryrefslogtreecommitdiffstats
path: root/comms/soundmodem
diff options
context:
space:
mode:
authordb <db@FreeBSD.org>2016-02-24 02:39:57 +0800
committerdb <db@FreeBSD.org>2016-02-24 02:39:57 +0800
commit21a3eec84143ee4b04f5ce3d220a0fee44bf7074 (patch)
tree5ca283daff01034c72114bb7c75c2e75ded526b3 /comms/soundmodem
parent32b59a2a5302d32b3689f6a5a47081aaf63fb7e3 (diff)
downloadfreebsd-ports-gnome-21a3eec84143ee4b04f5ce3d220a0fee44bf7074.tar.gz
freebsd-ports-gnome-21a3eec84143ee4b04f5ce3d220a0fee44bf7074.tar.zst
freebsd-ports-gnome-21a3eec84143ee4b04f5ce3d220a0fee44bf7074.zip
oops I didn't. I did. I forgot to add some patches.
I'll just go sit in the corner with the pointy hat then.
Diffstat (limited to 'comms/soundmodem')
-rw-r--r--comms/soundmodem/files/patch-newqpsk_complex.h18
-rw-r--r--comms/soundmodem/files/patch-newqpsk_fec.h18
-rw-r--r--comms/soundmodem/files/patch-newqpsk_misc.h18
-rw-r--r--comms/soundmodem/files/patch-soundcard_modem.h18
-rw-r--r--comms/soundmodem/files/patch-soundcard_simd.h13
5 files changed, 85 insertions, 0 deletions
diff --git a/comms/soundmodem/files/patch-newqpsk_complex.h b/comms/soundmodem/files/patch-newqpsk_complex.h
new file mode 100644
index 000000000000..123ce0e31b5e
--- /dev/null
+++ b/comms/soundmodem/files/patch-newqpsk_complex.h
@@ -0,0 +1,18 @@
+--- newqpsk/complex.h.orig 2015-05-04 17:51:16 UTC
++++ newqpsk/complex.h
+@@ -10,11 +10,15 @@ typedef struct {
+ #endif
+ } complex;
+
++#if __clang__ > 0
++#define only_inline inline
++#else
+ #if __GNUC__ < 5
+ #define only_inline extern inline
+ #else
+ #define only_inline inline
+ #endif
++#endif
+
+ /*
+ * Complex multiplication.
diff --git a/comms/soundmodem/files/patch-newqpsk_fec.h b/comms/soundmodem/files/patch-newqpsk_fec.h
new file mode 100644
index 000000000000..fc6a0d4297ea
--- /dev/null
+++ b/comms/soundmodem/files/patch-newqpsk_fec.h
@@ -0,0 +1,18 @@
+--- newqpsk/fec.h.orig 2015-05-04 17:49:44 UTC
++++ newqpsk/fec.h
+@@ -3,11 +3,15 @@
+
+ /* --------------------------------------------------------------------- */
+
++#if __clang__ > 0
++#define only_inline inline
++#else
+ #if __GNUC__ < 5
+ #define only_inline extern inline
+ #else
+ #define only_inline inline
+ #endif
++#endif
+
+ struct fecstate {
+ int feclevel;
diff --git a/comms/soundmodem/files/patch-newqpsk_misc.h b/comms/soundmodem/files/patch-newqpsk_misc.h
new file mode 100644
index 000000000000..1a9e52ba6afc
--- /dev/null
+++ b/comms/soundmodem/files/patch-newqpsk_misc.h
@@ -0,0 +1,18 @@
+--- newqpsk/misc.h.orig 2015-05-04 17:50:51 UTC
++++ newqpsk/misc.h
+@@ -5,11 +5,15 @@
+ #define M_PI 3.14159265358979323846
+ #endif
+
++#if __clang__ > 0
++#define only_inline inline
++#else
+ #if __GNUC__ < 5
+ #define only_inline extern inline
+ #else
+ #define only_inline inline
+ #endif
++#endif
+
+ /* ---------------------------------------------------------------------- */
+
diff --git a/comms/soundmodem/files/patch-soundcard_modem.h b/comms/soundmodem/files/patch-soundcard_modem.h
new file mode 100644
index 000000000000..8e5b1334e71c
--- /dev/null
+++ b/comms/soundmodem/files/patch-soundcard_modem.h
@@ -0,0 +1,18 @@
+--- soundcard/modem.h.orig 2015-05-04 17:48:03 UTC
++++ soundcard/modem.h
+@@ -79,11 +79,15 @@ typedef unsigned long long /* deduced */
+
+ /* ---------------------------------------------------------------------- */
+
++#if __clang__ > 0
++#define only_inline inline
++#else
+ #if __GNUC__ < 5
+ #define only_inline extern inline
+ #else
+ #define only_inline inline
+ #endif
++#endif
+
+ struct modemchannel;
+
diff --git a/comms/soundmodem/files/patch-soundcard_simd.h b/comms/soundmodem/files/patch-soundcard_simd.h
new file mode 100644
index 000000000000..389993db95c2
--- /dev/null
+++ b/comms/soundmodem/files/patch-soundcard_simd.h
@@ -0,0 +1,13 @@
+--- soundcard/simd.h.orig 2015-05-04 17:48:55 UTC
++++ soundcard/simd.h
+@@ -54,6 +54,10 @@
+
+ #if !defined(USEMMX) && !defined(USEVIS)
+
++#if __clang__ > 0
++#define only_inline inline
++#endif
++
+ only_inline void initsimd(int enable)
+ {
+ }