diff options
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r-- | src/mem_pool.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h index 79d9d48fe..5bef5fee1 100644 --- a/src/mem_pool.h +++ b/src/mem_pool.h @@ -70,6 +70,7 @@ struct _pool_destructors { /** * Memory pool type */ +struct rspamd_mutex_s; typedef struct memory_pool_s { struct _pool_chain *cur_pool; /**< currently used page */ struct _pool_chain *first_pool; /**< first page */ @@ -78,11 +79,7 @@ typedef struct memory_pool_s { struct _pool_chain_shared *shared_pool; /**< shared chain */ struct _pool_destructors *destructors; /**< destructors chain */ GHashTable *variables; /**< private memory pool variables */ -#if ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION <= 30)) - GStaticMutex mtx; /**< threads lock */ -#else - GMutex mtx; /**< threads lock */ -#endif + struct rspamd_mutex_s *mtx; /**< threads lock */ } memory_pool_t; /** |