aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libottery/ottery-threading.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 12:38:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 12:38:41 +0100
commit572f8723c85c2b5100fc76269f8b0f7ecb80c399 (patch)
tree36098d1ca96f351accb1793ccaf617780afaa5ed /contrib/libottery/ottery-threading.h
parentb8bc9298b16c3b73aead0b15fa60cf061168a8a2 (diff)
downloadrspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.tar.gz
rspamd-572f8723c85c2b5100fc76269f8b0f7ecb80c399.zip
Use cryptobox chacha for libottery.
Diffstat (limited to 'contrib/libottery/ottery-threading.h')
-rw-r--r--contrib/libottery/ottery-threading.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/libottery/ottery-threading.h b/contrib/libottery/ottery-threading.h
index 383d9cd83..c5427adae 100644
--- a/contrib/libottery/ottery-threading.h
+++ b/contrib/libottery/ottery-threading.h
@@ -14,6 +14,11 @@
#ifndef OTTERY_LOCKING_H_HEADER_INCLUDED_
#define OTTERY_LOCKING_H_HEADER_INCLUDED_
+/* We don't need locks when building rspamd */
+#ifdef BUILD_RSPAMD
+#define OTTERY_NO_LOCKS
+#endif
+
/* Locks */
#ifdef OTTERY_NO_LOCKS
/* Nothing here. */