Skip to content

Commit

Permalink
Add missing include
Browse files Browse the repository at this point in the history
Fixes GNU/Hurd build

/<<PKGBUILDDIR>>/src/XrdApps/XrdPrep.cc: In function ‘int main(int, char**)’:
/<<PKGBUILDDIR>>/src/XrdApps/XrdPrep.cc:109:34: error: ‘MAXPATHLEN’ was not declared in this scope
  109 |    static const int MaxPathLen = MAXPATHLEN+1;
      |                                  ^~~~~~~~~~
/<<PKGBUILDDIR>>/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
  • Loading branch information
ellert committed Dec 12, 2021
1 parent eb7bfcf commit fa7b5bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdApps/XrdPrep.cc
Expand Up @@ -42,6 +42,7 @@

#include "XrdOuc/XrdOucEnv.hh"
#include "XrdSys/XrdSysE2T.hh"
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdCl/XrdClFileSystem.hh"

using namespace XrdCl;
Expand Down

0 comments on commit fa7b5bd

Please sign in to comment.