[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 1f515458fee96be193db9
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-08-20 15:22:51
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hamlib -- Ham radio control libraries".
The branch, master has been updated
via 1f515458fee96be193db95d431813773c41eb08f (commit)
from 43191ced2d6bc18090dca94c7551e47c9f00a6e9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1f515458fee96be193db95d431813773c41eb08f
Author: Mike Black W9MDB <mdb...@ya...>
Date: Fri Aug 20 10:21:10 2021 -0500
Allow testlibusb to compile on < libusb-1.0.23
Generate warning for libusb-1.0.23 future requirement
https://github.com/Hamlib/Hamlib/issues/763
diff --git a/tests/testlibusb.c b/tests/testlibusb.c
index 83c5f62a..fefb8047 100755
--- a/tests/testlibusb.c
+++ b/tests/testlibusb.c
@@ -242,7 +242,8 @@ static void print_device(libusb_device *dev, libusb_device_handle *handle)
libusb_close(handle);
}
-#ifdef __linux__
+#if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01000107)
+
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
@@ -268,6 +269,7 @@ static int test_wrapped_device(const char *device_name)
return 0;
}
#else
+#warning LIBUSB-1.0.23 will be required in Hamlib > 4.3
static int test_wrapped_device(const char *device_name)
{
(void)device_name;
-----------------------------------------------------------------------
Summary of changes:
tests/testlibusb.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|