aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-23 09:05:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-23 09:05:18 +0100
commit8abc8829566bd40bdf796cc5c69b006ab64082f3 (patch)
tree40661c3443b8475d6b9f03066360406cc5d417c1 /contrib
parent6b9bb74c643bf32ecd5d292f099d74ceb5927eb3 (diff)
downloadrspamd-8abc8829566bd40bdf796cc5c69b006ab64082f3.tar.gz
rspamd-8abc8829566bd40bdf796cc5c69b006ab64082f3.zip
[Minor] Fix FreeBSD build
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lua-torch/torch7/lib/TH/THGeneral.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/lua-torch/torch7/lib/TH/THGeneral.c b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
index 03a3a0c3f..f093c422f 100644
--- a/contrib/lua-torch/torch7/lib/TH/THGeneral.c
+++ b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
@@ -15,10 +15,14 @@
#include <malloc/malloc.h>
#endif
-#ifdef __linux__
+#if defined(__linux__)
#include <malloc.h>
#endif
+#if defined(__FreeBSD__)
+#include <malloc_np.h>
+#endif
+
/* Torch Error Handling */
static void defaultErrorHandlerFunction(const char *msg, void *data)
{