From c64f05279c6d4f3637dab6c68efa8cb6881bbeb1 Mon Sep 17 00:00:00 2001 From: Jordi Mallach Date: Tue, 26 Jul 2016 02:37:33 +0200 Subject: [PATCH] Compile fixes for GNU/Hurd systems. Define PATH_MAX if it's not defined and the compiler defines __GNU__. --- 3rdparty/luafilesystem/src/lfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3rdparty/luafilesystem/src/lfs.c b/3rdparty/luafilesystem/src/lfs.c index ac483fa067b..ca89223e8f2 100644 --- a/3rdparty/luafilesystem/src/lfs.c +++ b/3rdparty/luafilesystem/src/lfs.c @@ -60,6 +60,12 @@ #include #endif +#ifdef __GNU__ +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif +#endif + #include #include #include