summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--ChangeLog7
-rw-r--r--config.h.in1
-rw-r--r--src/classifiers/bayes.c2
4 files changed, 12 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe0c2cab8..ff4be3f1b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ PROJECT(rspamd C)
SET(RSPAMD_VERSION_MAJOR 0)
SET(RSPAMD_VERSION_MINOR 5)
-SET(RSPAMD_VERSION_PATCH 5)
+SET(RSPAMD_VERSION_PATCH 6)
SET(RSPAMD_VERSION "${RSPAMD_VERSION_MAJOR}.${RSPAMD_VERSION_MINOR}.${RSPAMD_VERSION_PATCH}")
@@ -884,6 +884,7 @@ CHECK_FUNCTION_EXISTS(waitpid HAVE_WAITPID)
CHECK_FUNCTION_EXISTS(flock HAVE_FLOCK)
CHECK_FUNCTION_EXISTS(tanhl HAVE_TANHL)
CHECK_FUNCTION_EXISTS(expl HAVE_EXPL)
+CHECK_FUNCTION_EXISTS(exp2l HAVE_EXP2L)
CHECK_FUNCTION_EXISTS(sendfile HAVE_SENDFILE)
CHECK_FUNCTION_EXISTS(mkstemp HAVE_MKSTEMP)
CHECK_FUNCTION_EXISTS(setitimer HAVE_SETITIMER)
diff --git a/ChangeLog b/ChangeLog
index e73109570..f2c52c798 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+0.5.6:
+ * Fix bug with counters incrementing in rolling history
+ * Detect expl and exp2l as some systems do not have it
+ * Support input streams without Content-Length
+ * Implement counters output via rspamc and controller interface
+ * Fix bug with udp sockets in fuzzy storage
+
0.5.5:
* New bayes normalizator based on inverse chi-square function
* Various fixes to fuzzy storage
diff --git a/config.h.in b/config.h.in
index a39f2d17e..d959da5b0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -145,6 +145,7 @@
#cmakedefine HAVE_TANHL 1
#cmakedefine HAVE_EXPL 1
+#cmakedefine HAVE_EXP2L 1
#cmakedefine HAVE_SA_SIGINFO 1
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c
index f8aed3ac7..c892488bd 100644
--- a/src/classifiers/bayes.c
+++ b/src/classifiers/bayes.c
@@ -123,6 +123,8 @@ inv_chi_square (gdouble value, gint freedom_deg)
errno = 0;
#ifdef HAVE_EXPL
prob = expl (-value);
+#elif defined(HAVE_EXP2L)
+ prob = exp2l (-value);
#else
prob = exp (-value);
#endif