]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix FreeBSD build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Jun 2018 08:05:18 +0000 (09:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Jun 2018 08:05:18 +0000 (09:05 +0100)
contrib/lua-torch/torch7/lib/TH/THGeneral.c

index 03a3a0c3f7b5bab3ece422709299a3df530896b8..f093c422f1a76802ec53437ed2eec7fa936b6215 100644 (file)
 #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)
 {