]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Make Torch less dumb, sigh
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jun 2018 18:22:57 +0000 (19:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jun 2018 18:22:57 +0000 (19:22 +0100)
contrib/lua-torch/torch7/lib/TH/THGeneral.c

index 998ac321253f13591032f3f88ec8d1ad6e02a6d3..03a3a0c3f7b5bab3ece422709299a3df530896b8 100644 (file)
 #include <malloc/malloc.h>
 #endif
 
+#ifdef __linux__
+#include <malloc.h>
+#endif
+
 /* Torch Error Handling */
 static void defaultErrorHandlerFunction(const char *msg, void *data)
 {