#cmakedefine WITH_SQLITE 1
#cmakedefine WITH_SYSTEM_HIREDIS 1
+#cmakedefine DISABLE_PTHREAD_MUTEX 1
+
/* Detect endiannes */
#ifdef HAVE_ENDIAN_H
#define RSPAMD_MEM_POOL_H
#include "config.h"
-#ifdef HAVE_PTHREAD_PROCESS_SHARED
+#if defined(HAVE_PTHREAD_PROCESS_SHARED) && !defined(DISABLE_PTHREAD_MUTEX)
#include <pthread.h>
#endif
/**
* Pool mutex structure
*/
-#ifndef HAVE_PTHREAD_PROCESS_SHARED
+#if !defined(HAVE_PTHREAD_PROCESS_SHARED) || defined(DISABLE_PTHREAD_MUTEX)
typedef struct memory_pool_mutex_s {
gint lock;
pid_t owner;