From 17e0251d84235527612493d1f18bd55cf77a0112 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 22 Jul 2018 17:57:34 +0200 Subject: [PATCH] sr_buildinfo_libs_get(): Also support LIBUSBX_API_VERSION. This fixes a build issue on some distros / libusb versions. --- src/backend.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index 0a9bf136..ef5cd260 100644 --- a/src/backend.c +++ b/src/backend.c @@ -155,7 +155,12 @@ SR_API GSList *sr_buildinfo_libs_get(void) lv = libusb_get_version(); m = g_slist_append(m, g_strdup_printf("%d.%d.%d.%d%s API 0x%08x", lv->major, lv->minor, lv->micro, lv->nano, lv->rc, - LIBUSB_API_VERSION)); +#if defined(LIBUSB_API_VERSION) + LIBUSB_API_VERSION +#elif defined(LIBUSBX_API_VERSION) + LIBUSBX_API_VERSION +#endif + )); #endif l = g_slist_append(l, m); #endif