aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 19:13:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 19:13:17 +0100
commita26830c70f6e42896a12836a47fd379358d07afd (patch)
treeef816085461c702598a7f47e5bc3364eb87b3618 /contrib
parent004a8cb98057fd802ed285a559b1ab0f5b3fda50 (diff)
downloadrspamd-a26830c70f6e42896a12836a47fd379358d07afd.tar.gz
rspamd-a26830c70f6e42896a12836a47fd379358d07afd.zip
[Minor] Try to make Torch not so 'clever'
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lua-torch/torch7/lib/TH/THGeneral.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/lua-torch/torch7/lib/TH/THGeneral.c b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
index 6ad96b51c..998ac3212 100644
--- a/contrib/lua-torch/torch7/lib/TH/THGeneral.c
+++ b/contrib/lua-torch/torch7/lib/TH/THGeneral.c
@@ -11,13 +11,7 @@
#define __thread __declspec( thread )
#endif
-#if (defined(__unix) || defined(_WIN32))
- #if defined(__FreeBSD__)
- #include <malloc_np.h>
- #else
- #include <malloc.h>
- #endif
-#elif defined(__APPLE__)
+#if defined(__APPLE__)
#include <malloc/malloc.h>
#endif