From fa7b5bd944771a986e0160afa0252427f9bd084e Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Sun, 12 Dec 2021 22:33:44 +0100 Subject: [PATCH] Add missing include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes GNU/Hurd build /<>/src/XrdApps/XrdPrep.cc: In function ‘int main(int, char**)’: /<>/src/XrdApps/XrdPrep.cc:109:34: error: ‘MAXPATHLEN’ was not declared in this scope 109 | static const int MaxPathLen = MAXPATHLEN+1; | ^~~~~~~~~~ /<>/src/XrdApps/XrdPrep.cc:213:24: error: size of array ‘fBuff’ is not an integral constant-expression 213 | char *sP, fBuff[MaxPathLen]; | ^~~~~~~~~~ src/CMakeFiles/xrdprep.dir/build.make:78: recipe for target 'src/CMakeFiles/xrdprep.dir/XrdApps/XrdPrep.cc.o' failed --- src/XrdApps/XrdPrep.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XrdApps/XrdPrep.cc b/src/XrdApps/XrdPrep.cc index b90c521c8f4..1f2d15af248 100644 --- a/src/XrdApps/XrdPrep.cc +++ b/src/XrdApps/XrdPrep.cc @@ -42,6 +42,7 @@ #include "XrdOuc/XrdOucEnv.hh" #include "XrdSys/XrdSysE2T.hh" +#include "XrdSys/XrdSysPlatform.hh" #include "XrdCl/XrdClFileSystem.hh" using namespace XrdCl;