aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lua-torch
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 19:22:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 19:22:57 +0100
commit6b9bb74c643bf32ecd5d292f099d74ceb5927eb3 (patch)
treeefb492b8e9fb1aab13c14f5385dd6f238c6c1b54 /contrib/lua-torch
parenta26830c70f6e42896a12836a47fd379358d07afd (diff)
downloadrspamd-6b9bb74c643bf32ecd5d292f099d74ceb5927eb3.tar.gz
rspamd-6b9bb74c643bf32ecd5d292f099d74ceb5927eb3.zip
[Minor] Make Torch less dumb, sigh
Diffstat (limited to 'contrib/lua-torch')
-rw-r--r--contrib/lua-torch/torch7/lib/TH/THGeneral.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/lua-torch/torch7/lib/TH/THGeneral.c b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
index 998ac3212..03a3a0c3f 100644
--- a/contrib/lua-torch/torch7/lib/TH/THGeneral.c
+++ b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
@@ -15,6 +15,10 @@
#include <malloc/malloc.h>
#endif
+#ifdef __linux__
+#include <malloc.h>
+#endif
+
/* Torch Error Handling */
static void defaultErrorHandlerFunction(const char *msg, void *data)
{