$OpenBSD: patch-gr-digital_lib_symbol_sync_ff_impl_cc,v 1.1 2021/09/05 08:13:33 ajacoutot Exp $

[PATCH] boost: remove deprecated math/common_factor.hpp

2c767bb260a25b415e8c9c4b3ea37280b2127cec

Index: gr-digital/lib/symbol_sync_ff_impl.cc
--- gr-digital/lib/symbol_sync_ff_impl.cc.orig
+++ gr-digital/lib/symbol_sync_ff_impl.cc
@@ -25,9 +25,9 @@
 #endif
 
 #include "symbol_sync_ff_impl.h"
+#include <gnuradio/integer_math.h>
 #include <gnuradio/io_signature.h>
 #include <gnuradio/math.h>
-#include <boost/math/common_factor.hpp>
 #include <stdexcept>
 
 namespace gr {
@@ -116,7 +116,7 @@ symbol_sync_ff_impl::symbol_sync_ff_impl(enum ted_type
         throw std::runtime_error("unable to create interpolating_resampler_fff");
 
     // Block Internal Clocks
-    d_interps_per_symbol_n = boost::math::lcm(d_ted->inputs_per_symbol(), d_osps_n);
+    d_interps_per_symbol_n = GR_LCM(d_ted->inputs_per_symbol(), d_osps_n);
     d_interps_per_ted_input_n = d_interps_per_symbol_n / d_ted->inputs_per_symbol();
     d_interps_per_output_sample_n = d_interps_per_symbol_n / d_osps_n;
 
