From 3bace666b72ca120587e12acc4b3547bb8e3fa32 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Tue, 9 May 2023 22:14:05 +0200 Subject: Fix build error with --enable-debug-log The error is: core.c:2451:8: error: no member named 'debug' in 'struct libusb_context' _ctx->debug = LIBUSB_LOG_LEVEL_NONE; ~~~~ ^ Signed-off-by: Ludovic Rousseau --- libusb/core.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/core.c b/libusb/core.c index 23ab43b..a0248d1 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -2448,8 +2448,8 @@ int API_EXPORTED libusb_init_context(libusb_context **ctx, const struct libusb_i return LIBUSB_ERROR_NO_MEM; } - _ctx->debug = LIBUSB_LOG_LEVEL_NONE; #if defined(ENABLE_LOGGING) && !defined(ENABLE_DEBUG_LOGGING) + _ctx->debug = LIBUSB_LOG_LEVEL_NONE; if (getenv("LIBUSB_DEBUG")) { _ctx->debug = get_env_debug_level(); _ctx->debug_fixed = 1; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index ab21611..6fd8422 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11794 +#define LIBUSB_NANO 11795 -- cgit v1.2.1