From: Vsevolod Stakhov Date: Sat, 23 Jun 2018 08:05:18 +0000 (+0100) Subject: [Minor] Fix FreeBSD build X-Git-Tag: 1.7.7~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8abc8829566bd40bdf796cc5c69b006ab64082f3;p=thirdparty%2Frspamd.git [Minor] Fix FreeBSD build --- diff --git a/contrib/lua-torch/torch7/lib/TH/THGeneral.c b/contrib/lua-torch/torch7/lib/TH/THGeneral.c index 03a3a0c3f7..f093c422f1 100644 --- a/contrib/lua-torch/torch7/lib/TH/THGeneral.c +++ b/contrib/lua-torch/torch7/lib/TH/THGeneral.c @@ -15,10 +15,14 @@ #include #endif -#ifdef __linux__ +#if defined(__linux__) #include #endif +#if defined(__FreeBSD__) +#include +#endif + /* Torch Error Handling */ static void defaultErrorHandlerFunction(const char *msg, void *data) {