File CubicSDR-update-hamlib-define.patch of Package CubicSDR
From 7826006c143ac8966bb39fc8cd3e0495d8c5168c Mon Sep 17 00:00:00 2001
From: "Charles J. Cliffe" <cj@dragonflyit.ca>
Date: Wed, 2 Jun 2021 22:41:50 -0400
Subject: [PATCH] HAMLIB patch for updated define
---
src/rig/RigThread.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/rig/RigThread.h b/src/rig/RigThread.h
index 9aadd86f..af65fb92 100644
--- a/src/rig/RigThread.h
+++ b/src/rig/RigThread.h
@@ -8,6 +8,10 @@
#include <hamlib/rig.h>
#include <hamlib/riglist.h>
+#ifndef FILPATHLEN
+ #define FILPATHLEN HAMLIB_FILPATHLEN
+#endif
+
struct rigGreater
{
bool operator()( const struct rig_caps *lx, const struct rig_caps *rx ) const {
@@ -64,4 +68,4 @@ class RigThread : public IOThread {
std::atomic_bool errorState;
std::string errorMessage;
static RigList rigCaps;
-};
\ No newline at end of file
+};