From 6b9bb74c643bf32ecd5d292f099d74ceb5927eb3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 22 Jun 2018 19:22:57 +0100 Subject: [Minor] Make Torch less dumb, sigh --- contrib/lua-torch/torch7/lib/TH/THGeneral.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #endif +#ifdef __linux__ +#include +#endif + /* Torch Error Handling */ static void defaultErrorHandlerFunction(const char *msg, void *data) { -- cgit v1.2.3