aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/aho-corasick
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-11-28 13:15:12 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-28 13:15:12 +0100
commit32a6a19cd235f67f4ba702e85c10469b35a9915b (patch)
tree4d612f288111e97fa0c338890f08f4456869aa96 /contrib/aho-corasick
parent902ebce8b6c60a0a1cc1501c6da1ada1d2b2b4a5 (diff)
downloadrspamd-32a6a19cd235f67f4ba702e85c10469b35a9915b.tar.gz
rspamd-32a6a19cd235f67f4ba702e85c10469b35a9915b.zip
acism: Add missing glib dependency
This library uses g_ascii_tolower()
Diffstat (limited to 'contrib/aho-corasick')
-rw-r--r--contrib/aho-corasick/CMakeLists.txt2
-rw-r--r--contrib/aho-corasick/acism.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/contrib/aho-corasick/CMakeLists.txt b/contrib/aho-corasick/CMakeLists.txt
index 4b1a75773..ea300253f 100644
--- a/contrib/aho-corasick/CMakeLists.txt
+++ b/contrib/aho-corasick/CMakeLists.txt
@@ -6,9 +6,11 @@ endif ()
IF(NOT GPL_RSPAMD_BINARY)
ADD_LIBRARY(rspamd-actrie SHARED ${AHOCORASICSRC})
+ target_link_libraries(rspamd-actrie glib-2.0)
INSTALL(TARGETS rspamd-actrie
LIBRARY DESTINATION ${RSPAMD_LIBDIR})
ELSE()
ADD_LIBRARY(rspamd-actrie STATIC ${AHOCORASICSRC})
+ target_link_libraries(rspamd-actrie glib-2.0)
ENDIF()
diff --git a/contrib/aho-corasick/acism.c b/contrib/aho-corasick/acism.c
index 111704805..a0b478ad8 100644
--- a/contrib/aho-corasick/acism.c
+++ b/contrib/aho-corasick/acism.c
@@ -17,6 +17,8 @@
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include <glib.h>
+
#include "_acism.h"
#include "unix-std.h"