diff options
author | Nikias Bassen | 2021-12-09 01:23:38 +0100 |
---|---|---|
committer | Nikias Bassen | 2021-12-09 01:23:38 +0100 |
commit | 8bc9ccc2bff2e3f92a952bf9ae9fa218f448c774 (patch) | |
tree | 8c5092f123bf19cc615dbb3cd349a7b3cf9c0162 /src/libirecovery.c | |
parent | 08a7c94569160eeb6f8e757c361d5e04a6492700 (diff) | |
download | libirecovery-8bc9ccc2bff2e3f92a952bf9ae9fa218f448c774.tar.gz libirecovery-8bc9ccc2bff2e3f92a952bf9ae9fa218f448c774.tar.bz2 |
Make sure compilation doesn't fail if configured using --with-dummy
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |