diff options
| author | 2021-12-09 01:23:38 +0100 | |
|---|---|---|
| committer | 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) { | |||
| 996 | 996 | ||
| 997 | IRECV_API void irecv_init(void) | 997 | IRECV_API void irecv_init(void) |
| 998 | { | 998 | { |
| 999 | #ifndef USE_DUMMY | ||
| 999 | thread_once(&init_once, _irecv_init); | 1000 | thread_once(&init_once, _irecv_init); |
| 1001 | #endif | ||
| 1000 | } | 1002 | } |
| 1001 | 1003 | ||
| 1002 | IRECV_API void irecv_exit(void) | 1004 | IRECV_API void irecv_exit(void) |
| 1003 | { | 1005 | { |
| 1006 | #ifndef USE_DUMMY | ||
| 1004 | thread_once(&deinit_once, _irecv_deinit); | 1007 | thread_once(&deinit_once, _irecv_deinit); |
| 1008 | #endif | ||
| 1005 | } | 1009 | } |
| 1006 | 1010 | ||
| 1007 | #ifndef USE_DUMMY | 1011 | #ifndef USE_DUMMY |
