Created
March 20, 2023 01:53
-
-
Save Randrianasulu/facc15d6d4dc1fc508c173eb409e0bb1 to your computer and use it in GitHub Desktop.
Fix for liquid-dsp 'make bench'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/quiet-dsp $ cat ~/storage/downloads/liquid_dsp/math_include.diff | |
diff --git a/src/framing/bench/framesync64_benchmark.c b/src/framing/bench/framesync64_benchmark.c index 07a9184d..a436ec12 100644 | |
--- a/src/framing/bench/framesync64_benchmark.c | |
+++ b/src/framing/bench/framesync64_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include "math.h" | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/framing/bench/gmskframesync_benchmark.c b/src/framing/bench/gmskframesync_benchmark.c | |
index dd21522d..f8f981a7 100644 | |
--- a/src/framing/bench/gmskframesync_benchmark.c | |
+++ b/src/framing/bench/gmskframesync_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include <assert.h> | |
diff --git a/src/modem/bench/freqdem_benchmark.c b/src/modem/bench/freqdem_benchmark.c | |
index 1354da5d..f777db00 100644 | |
--- a/src/modem/bench/freqdem_benchmark.c | |
+++ b/src/modem/bench/freqdem_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/modem/bench/freqmod_benchmark.c b/src/modem/bench/freqmod_benchmark.c | |
index 1bcc099a..d1acc42e 100644 | |
--- a/src/modem/bench/freqmod_benchmark.c | |
+++ b/src/modem/bench/freqmod_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/modem/bench/fskdem_benchmark.c b/src/modem/bench/fskdem_benchmark.c | |
index fb940a33..caaa0d13 100644 | |
--- a/src/modem/bench/fskdem_benchmark.c | |
+++ b/src/modem/bench/fskdem_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/modem/bench/gmskmodem_benchmark.c b/src/modem/bench/gmskmodem_benchmark.c | |
index a3a6c080..9b5c33d3 100644 | |
--- a/src/modem/bench/gmskmodem_benchmark.c | |
+++ b/src/modem/bench/gmskmodem_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/modem/bench/modem_demodsoft_benchmark.c b/src/modem/bench/modem_demodsoft_benchmark.c | |
index 9da34884..70a8c253 100644 | |
--- a/src/modem/bench/modem_demodsoft_benchmark.c | |
+++ b/src/modem/bench/modem_demodsoft_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> | |
#include "liquid.h" | |
diff --git a/src/modem/bench/modem_demodulate_benchmark.c b/src/modem/bench/modem_demodulate_benchmark.c | |
index 4d6038a8..c874325e 100644 | |
--- a/src/modem/bench/modem_demodulate_benchmark.c | |
+++ b/src/modem/bench/modem_demodulate_benchmark.c | |
@@ -22,6 +22,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
+#include <math.h> | |
#include <sys/resource.h> #include "liquid.h" | |
diff --git a/src/multichannel/bench/ofdmframesync_acquire_benchmark.c b/src/multichannel/bench/ofdmframesync_acquire_benchmark.c | |
index 7cf1e2ba..8e3e96f0 100644 | |
--- a/src/multichannel/bench/ofdmframesync_acquire_benchmark.c | |
+++ b/src/multichannel/bench/ofdmframesync_acquire_benchmark.c | |
@@ -23,6 +23,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
+#include <math.h> | |
#include <assert.h> | |
#include <sys/resource.h> | |
diff --git a/src/multichannel/bench/ofdmframesync_rxsymbol_benchmark.c b/src/multichannel/bench/ofdmframesync_rxsymbol_benchmark.c | |
index 45223952..909154d3 100644 | |
--- a/src/multichannel/bench/ofdmframesync_rxsymbol_benchmark.c | |
+++ b/src/multichannel/bench/ofdmframesync_rxsymbol_benchmark.c | |
@@ -23,6 +23,7 @@ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
+#include <math.h> | |
#include <assert.h> | |
#include <sys/resource.h> | |
~/quiet-dsp $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment