From 8bc9ccc2bff2e3f92a952bf9ae9fa218f448c774 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 9 Dec 2021 01:23:38 +0100 Subject: Make sure compilation doesn't fail if configured using --with-dummy --- src/libirecovery.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/libirecovery.c b/src/libirecovery.c index 3bcfbf2..0e971a0 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -996,12 +996,16 @@ static int check_context(irecv_client_t client) { IRECV_API void irecv_init(void) { +#ifndef USE_DUMMY thread_once(&init_once, _irecv_init); +#endif } IRECV_API void irecv_exit(void) { +#ifndef USE_DUMMY thread_once(&deinit_once, _irecv_deinit); +#endif } #ifndef USE_DUMMY -- cgit v1.1-32-gdbae