add support for FILPATHLEN -> HAMLIB_FILPATHLEN change at hamlib-4.2
ok sthen@
This commit is contained in:
parent
f6deba442b
commit
ede447a05a
|
@ -1,10 +1,10 @@
|
|||
# $OpenBSD: Makefile,v 1.31 2020/01/26 11:14:30 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.32 2022/01/02 20:23:48 uaa Exp $
|
||||
|
||||
COMMENT= logbook program for amateur radio operators
|
||||
|
||||
DISTNAME= xlog-2.0.15
|
||||
CATEGORIES= comms hamradio
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
|
||||
HOMEPAGE= http://www.nongnu.org/xlog/
|
||||
|
||||
|
|
22
comms/xlog/patches/patch-src_hamlib-utils_c
Normal file
22
comms/xlog/patches/patch-src_hamlib-utils_c
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- src/hamlib-utils.c.orig Fri Dec 30 04:02:44 2016
|
||||
+++ src/hamlib-utils.c Sun Jan 2 20:24:36 2022
|
||||
@@ -45,6 +45,10 @@
|
||||
#include "../data/pixmaps/s8.xpm"
|
||||
#include "../data/pixmaps/s9.xpm"
|
||||
|
||||
+#ifndef HAMLIB_FILPATHLEN
|
||||
+#define HAMLIB_FILPATHLEN FILPATHLEN
|
||||
+#endif
|
||||
+
|
||||
struct rig_id {
|
||||
const gint modelnr;
|
||||
const gchar *modelname;
|
||||
@@ -168,7 +172,7 @@ start_hamlib (gint rigid, gchar *device, gint debugmod
|
||||
update_statusbar (temp);
|
||||
}
|
||||
}
|
||||
- strncpy (myrig->state.rigport.pathname, device, FILPATHLEN);
|
||||
+ strncpy (myrig->state.rigport.pathname, device, HAMLIB_FILPATHLEN);
|
||||
retcode = rig_open (myrig);
|
||||
if (retcode != RIG_OK)
|
||||
{
|
Loading…
Reference in New Issue
Block a user